Create a PPAPI host for new resource message routing.
This infrastructure will be used in the renderer and in the browser as the backing for new resources.
The PpapiHost object doues the routing for the resource messages, and also has hooks for the embedder (the renderer or the browser) to create resources. This adds a content_renderer factory which currently does nothing (we'll add most of the resources here).
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10572040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145059 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ppapi/proxy/dispatcher.cc b/ppapi/proxy/dispatcher.cc
index 7ecd2c1..3ef2c270 100644
--- a/ppapi/proxy/dispatcher.cc
+++ b/ppapi/proxy/dispatcher.cc
@@ -25,6 +25,10 @@
Dispatcher::~Dispatcher() {
}
+void Dispatcher::AddFilter(IPC::Listener* listener) {
+ filters_.push_back(listener);
+}
+
InterfaceProxy* Dispatcher::GetInterfaceProxy(ApiID id) {
InterfaceProxy* proxy = proxies_[id].get();
if (!proxy) {