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

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

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 7 years, 3 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
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> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // PepperRendererConnection, which serves as the host for in-process plugins. 47 // PepperRendererConnection, which serves as the host for in-process plugins.
48 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const; 48 BrowserPpapiHostImpl* GetHostForChildProcess(int child_process_id) const;
49 49
50 void OnMsgCreateResourceHostsFromHost( 50 void OnMsgCreateResourceHostsFromHost(
51 int routing_id, 51 int routing_id,
52 int child_process_id, 52 int child_process_id,
53 const ppapi::proxy::ResourceMessageCallParams& params, 53 const ppapi::proxy::ResourceMessageCallParams& params,
54 PP_Instance instance, 54 PP_Instance instance,
55 const std::vector<IPC::Message>& nested_msgs); 55 const std::vector<IPC::Message>& nested_msgs);
56 56
57 void OnMsgFileRefGetInfoForRenderer(
58 int routing_id,
59 int child_process_id,
60 int32_t sequence_num,
61 const std::vector<PP_Resource>& resources);
62
63 void OnMsgDidCreateInProcessInstance( 57 void OnMsgDidCreateInProcessInstance(
64 PP_Instance instance, 58 PP_Instance instance,
65 const PepperRendererInstanceData& instance_data); 59 const PepperRendererInstanceData& instance_data);
66 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); 60 void OnMsgDidDeleteInProcessInstance(PP_Instance instance);
67 61
68 int render_process_id_; 62 int render_process_id_;
69 63
70 // We have a single BrowserPpapiHost per-renderer for all in-process plugins 64 // We have a single BrowserPpapiHost per-renderer for all in-process plugins
71 // running. This is just a work-around allowing new style resources to work 65 // running. This is just a work-around allowing new style resources to work
72 // with the browser when running in-process but it means that plugin-specific 66 // with the browser when running in-process but it means that plugin-specific
73 // information (like the plugin name) won't be available. 67 // information (like the plugin name) won't be available.
74 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; 68 scoped_ptr<BrowserPpapiHostImpl> in_process_host_;
75 69
76 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); 70 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection);
77 }; 71 };
78 72
79 } // namespace content 73 } // namespace content
80 74
81 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 75 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698