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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_renderer_connection.h

Issue 23011018: Modify Pepper CreateResourceHostFromHost to create multiple hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_renderer_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
7 7
8 #include <vector>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_message_filter.h" 13 #include "content/public/browser/browser_message_filter.h"
12 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
14 16
15 class GURL; 17 class GURL;
16 18
17 namespace ppapi { 19 namespace ppapi {
(...skipping 20 matching lines...) Expand all
38 bool* message_was_ok) OVERRIDE; 40 bool* message_was_ok) OVERRIDE;
39 41
40 private: 42 private:
41 virtual ~PepperRendererConnection(); 43 virtual ~PepperRendererConnection();
42 44
43 // Returns the host for the child process for the given |child_process_id|. 45 // Returns the host for the child process for the given |child_process_id|.
44 // If |child_process_id| is 0, returns the host owned by this 46 // If |child_process_id| is 0, returns the host owned by this
45 // PepperRendererConnection, which serves as the host for in-process plugins. 47 // PepperRendererConnection, which serves as the host for in-process plugins.
46 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const; 48 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const;
47 49
48 void OnMsgCreateResourceHostFromHost( 50 void OnMsgCreateResourceHostsFromHost(
49 int routing_id, 51 int routing_id,
50 int child_process_id, 52 int child_process_id,
51 const ppapi::proxy::ResourceMessageCallParams& params, 53 const ppapi::proxy::ResourceMessageCallParams& params,
52 PP_Instance instance, 54 PP_Instance instance,
53 const IPC::Message& nested_msg); 55 const std::vector<IPC::Message>& nested_msgs);
54 56
55 void OnMsgFileRefGetInfoForRenderer( 57 void OnMsgFileRefGetInfoForRenderer(
56 int routing_id, 58 int routing_id,
57 int child_process_id, 59 int child_process_id,
58 int32_t sequence_num, 60 int32_t sequence_num,
59 const std::vector<PP_Resource>& resources); 61 const std::vector<PP_Resource>& resources);
60 62
61 void OnMsgDidCreateInProcessInstance( 63 void OnMsgDidCreateInProcessInstance(
62 PP_Instance instance, 64 PP_Instance instance,
63 const PepperRendererInstanceData& instance_data); 65 const PepperRendererInstanceData& instance_data);
64 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); 66 void OnMsgDidDeleteInProcessInstance(PP_Instance instance);
65 67
66 int render_process_id_; 68 int render_process_id_;
67 69
68 // We have a single BrowserPpapiHost per-renderer for all in-process plugins 70 // We have a single BrowserPpapiHost per-renderer for all in-process plugins
69 // running. This is just a work-around allowing new style resources to work 71 // running. This is just a work-around allowing new style resources to work
70 // with the browser when running in-process but it means that plugin-specific 72 // with the browser when running in-process but it means that plugin-specific
71 // information (like the plugin name) won't be available. 73 // information (like the plugin name) won't be available.
72 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; 74 scoped_ptr<BrowserPpapiHostImpl> in_process_host_;
73 75
74 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); 76 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection);
75 }; 77 };
76 78
77 } // namespace content 79 } // namespace content
78 80
79 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 81 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/pepper/pepper_renderer_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698