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

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

Issue 22903002: Revert 216744 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/browser_message_filter.h" 11 #include "content/public/browser/browser_message_filter.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
14 #include "ppapi/shared_impl/file_ref_detailed_info.h"
15 14
16 class GURL; 15 class GURL;
17 16
18 namespace ppapi { 17 namespace ppapi {
19 namespace proxy { 18 namespace proxy {
20 class ResourceMessageCallParams; 19 class ResourceMessageCallParams;
21 } 20 }
22 } 21 }
23 22
24 namespace content { 23 namespace content {
(...skipping 27 matching lines...) Expand all
52 const ppapi::proxy::ResourceMessageCallParams& params, 51 const ppapi::proxy::ResourceMessageCallParams& params,
53 PP_Instance instance, 52 PP_Instance instance,
54 const IPC::Message& nested_msg); 53 const IPC::Message& nested_msg);
55 54
56 void OnMsgFileRefGetInfoForRenderer( 55 void OnMsgFileRefGetInfoForRenderer(
57 int routing_id, 56 int routing_id,
58 int child_process_id, 57 int child_process_id,
59 int32_t sequence_num, 58 int32_t sequence_num,
60 const std::vector<PP_Resource>& resources); 59 const std::vector<PP_Resource>& resources);
61 60
62 void OnMsgFileRefSyncGetInfoForRenderer(
63 int child_process_id,
64 const std::vector<PP_Resource>& resources,
65 std::vector<ppapi::FileRefDetailedInfo>* out_infos);
66
67 void OnMsgDidCreateInProcessInstance( 61 void OnMsgDidCreateInProcessInstance(
68 PP_Instance instance, 62 PP_Instance instance,
69 const PepperRendererInstanceData& instance_data); 63 const PepperRendererInstanceData& instance_data);
70 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); 64 void OnMsgDidDeleteInProcessInstance(PP_Instance instance);
71 65
72 int render_process_id_; 66 int render_process_id_;
73 67
74 // We have a single BrowserPpapiHost per-renderer for all in-process plugins 68 // We have a single BrowserPpapiHost per-renderer for all in-process plugins
75 // running. This is just a work-around allowing new style resources to work 69 // running. This is just a work-around allowing new style resources to work
76 // with the browser when running in-process but it means that plugin-specific 70 // with the browser when running in-process but it means that plugin-specific
77 // information (like the plugin name) won't be available. 71 // information (like the plugin name) won't be available.
78 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; 72 scoped_ptr<BrowserPpapiHostImpl> in_process_host_;
79 73
80 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); 74 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection);
81 }; 75 };
82 76
83 } // namespace content 77 } // namespace content
84 78
85 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ 79 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698