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

Unified Diff: content/browser/renderer_host/pepper/pepper_renderer_connection.h

Issue 15947004: Allow renderer to create pepper ResourceHosts in the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/browser/renderer_host/pepper/pepper_renderer_connection.h
diff --git a/content/browser/renderer_host/pepper/pepper_renderer_connection.h b/content/browser/renderer_host/pepper/pepper_renderer_connection.h
new file mode 100644
index 0000000000000000000000000000000000000000..b3bbc4ac4db852892e86aaf27125d8afdf666a13
--- /dev/null
+++ b/content/browser/renderer_host/pepper/pepper_renderer_connection.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2013 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.
+
+#ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
+#define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "content/public/browser/browser_message_filter.h"
+#include "ppapi/c/pp_instance.h"
+
+namespace ppapi {
+namespace proxy {
+class ResourceMessageCallParams;
+}
+}
+
+namespace content {
+
+// This class represents a connection from the browser to the renderer for
+// sending/receiving pepper ResourceHost related messages. When the browser
+// and renderer communicate about ResourceHosts, they should pass the plugin
+// process ID to identify which plugin they are talking about.
+class PepperRendererConnection : public BrowserMessageFilter {
+ public:
+ PepperRendererConnection();
+
+ // BrowserMessageFilter overrides.
+ virtual bool OnMessageReceived(const IPC::Message& msg,
+ bool* message_was_ok) OVERRIDE;
+
+ private:
+ virtual ~PepperRendererConnection();
+
+ void OnMsgCreateResourceHostFromHost(
+ int child_process_id,
+ const ppapi::proxy::ResourceMessageCallParams& params,
+ PP_Instance instance,
+ const IPC::Message& nested_msg);
+
+ DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
« no previous file with comments | « content/browser/ppapi_plugin_process_host.h ('k') | content/browser/renderer_host/pepper/pepper_renderer_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698