OLD | NEW |
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" |
14 | 15 |
15 class GURL; | 16 class GURL; |
16 | 17 |
17 namespace ppapi { | 18 namespace ppapi { |
18 namespace proxy { | 19 namespace proxy { |
19 class ResourceMessageCallParams; | 20 class ResourceMessageCallParams; |
20 } | 21 } |
21 } | 22 } |
22 | 23 |
23 namespace content { | 24 namespace content { |
(...skipping 27 matching lines...) Expand all Loading... |
51 const ppapi::proxy::ResourceMessageCallParams& params, | 52 const ppapi::proxy::ResourceMessageCallParams& params, |
52 PP_Instance instance, | 53 PP_Instance instance, |
53 const IPC::Message& nested_msg); | 54 const IPC::Message& nested_msg); |
54 | 55 |
55 void OnMsgFileRefGetInfoForRenderer( | 56 void OnMsgFileRefGetInfoForRenderer( |
56 int routing_id, | 57 int routing_id, |
57 int child_process_id, | 58 int child_process_id, |
58 int32_t sequence_num, | 59 int32_t sequence_num, |
59 const std::vector<PP_Resource>& resources); | 60 const std::vector<PP_Resource>& resources); |
60 | 61 |
| 62 void OnMsgFileRefSyncGetInfoForRenderer( |
| 63 int child_process_id, |
| 64 const std::vector<PP_Resource>& resources, |
| 65 std::vector<ppapi::FileRefDetailedInfo>* out_infos); |
| 66 |
61 void OnMsgDidCreateInProcessInstance( | 67 void OnMsgDidCreateInProcessInstance( |
62 PP_Instance instance, | 68 PP_Instance instance, |
63 const PepperRendererInstanceData& instance_data); | 69 const PepperRendererInstanceData& instance_data); |
64 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); | 70 void OnMsgDidDeleteInProcessInstance(PP_Instance instance); |
65 | 71 |
66 int render_process_id_; | 72 int render_process_id_; |
67 | 73 |
68 // We have a single BrowserPpapiHost per-renderer for all in-process plugins | 74 // 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 | 75 // 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 | 76 // with the browser when running in-process but it means that plugin-specific |
71 // information (like the plugin name) won't be available. | 77 // information (like the plugin name) won't be available. |
72 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; | 78 scoped_ptr<BrowserPpapiHostImpl> in_process_host_; |
73 | 79 |
74 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); | 80 DISALLOW_COPY_AND_ASSIGN(PepperRendererConnection); |
75 }; | 81 }; |
76 | 82 |
77 } // namespace content | 83 } // namespace content |
78 | 84 |
79 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ | 85 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_RENDERER_CONNECTION_H_ |
OLD | NEW |