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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/browser_message_filter.h"
11 #include "ppapi/c/pp_instance.h"
12
13 namespace ppapi {
14 namespace proxy {
15 class ResourceMessageCallParams;
16 }
17 }
18
19 namespace content {
20
21 // This class represents a connection from the browser to the renderer for
22 // sending/receiving pepper ResourceHost related messages. When the browser
23 // and renderer communicate about ResourceHosts, they should pass the plugin
24 // process ID to identify which plugin they are talking about.
25 class PepperRendererConnection : public BrowserMessageFilter {
26 public:
27 PepperRendererConnection();
28
29 // BrowserMessageFilter overrides.
30 virtual bool OnMessageReceived(const IPC::Message& msg,
31 bool* message_was_ok) OVERRIDE;
32
33 private:
34 virtual ~PepperRendererConnection();
35
36 void OnMsgCreateResourceHostFromHost(
37 int child_process_id,
38 const ppapi::proxy::ResourceMessageCallParams& params,
39 PP_Instance instance,
40 const IPC::Message& nested_msg);
41
42 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection);
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
OLDNEW
« 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