summaryrefslogtreecommitdiffstats
path: root/ppapi/host/resource_host.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-30 05:26:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-30 05:26:52 +0000
commit4dec5802baac225df48fb9153d2af7621d5850e6 (patch)
treecc52ebc1c7171654b9bdbc6b394fa2c8df1ff059 /ppapi/host/resource_host.cc
parent250c074059ca38cbc7474d3332ba3edcf8e86e65 (diff)
downloadchromium_src-4dec5802baac225df48fb9153d2af7621d5850e6.zip
chromium_src-4dec5802baac225df48fb9153d2af7621d5850e6.tar.gz
chromium_src-4dec5802baac225df48fb9153d2af7621d5850e6.tar.bz2
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
Diffstat (limited to 'ppapi/host/resource_host.cc')
-rw-r--r--ppapi/host/resource_host.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/ppapi/host/resource_host.cc b/ppapi/host/resource_host.cc
new file mode 100644
index 0000000..b67be08
--- /dev/null
+++ b/ppapi/host/resource_host.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ppapi/host/resource_host.h"
+
+#include "ppapi/c/pp_errors.h"
+
+namespace ppapi {
+namespace host {
+
+ResourceHost::ResourceHost(PpapiHost* host,
+ PP_Instance instance,
+ PP_Resource resource)
+ : host_(host),
+ pp_instance_(instance),
+ pp_resource_(resource) {
+}
+
+ResourceHost::~ResourceHost() {
+}
+
+int32_t ResourceHost::OnResourceMessageReceived(const IPC::Message& msg,
+ HostMessageContext* context) {
+ return PP_ERROR_NOTSUPPORTED;
+}
+
+} // namespace host
+} // namespace ppapi