Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1546)

Unified Diff: ppapi/host/resource_host.cc

Issue 10572040: Create a PPAPI host for new resource message routing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/host/resource_host.h ('k') | ppapi/ppapi_host.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/host/resource_host.cc
diff --git a/ppapi/host/resource_host.cc b/ppapi/host/resource_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b67be089ac0191c4a5d793ceb0acce229d672eae
--- /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
« no previous file with comments | « ppapi/host/resource_host.h ('k') | ppapi/ppapi_host.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698