OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_PEPPER_PLUGIN_MODULE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_ |
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 25 matching lines...) Expand all Loading... |
36 class CallbackTracker; | 36 class CallbackTracker; |
37 class WebKitForwarding; | 37 class WebKitForwarding; |
38 } // namespace ppapi | 38 } // namespace ppapi |
39 | 39 |
40 namespace IPC { | 40 namespace IPC { |
41 struct ChannelHandle; | 41 struct ChannelHandle; |
42 } | 42 } |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 class WebPluginContainer; | 45 class WebPluginContainer; |
| 46 class WebURL; |
46 } // namespace blink | 47 } // namespace blink |
47 | 48 |
48 namespace content { | 49 namespace content { |
49 class HostDispatcherWrapper; | 50 class HostDispatcherWrapper; |
50 class PepperPluginInstanceImpl; | 51 class PepperPluginInstanceImpl; |
51 class PepperBroker; | 52 class PepperBroker; |
52 class RendererPpapiHostImpl; | 53 class RendererPpapiHostImpl; |
53 class RenderFrameImpl; | 54 class RenderFrameImpl; |
54 struct WebPluginInfo; | 55 struct WebPluginInfo; |
55 | 56 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // proxy needs this information to set itself up properly). | 135 // proxy needs this information to set itself up properly). |
135 PP_Module pp_module() const { return pp_module_; } | 136 PP_Module pp_module() const { return pp_module_; } |
136 | 137 |
137 const std::string& name() const { return name_; } | 138 const std::string& name() const { return name_; } |
138 const std::string& version() const { return version_; } | 139 const std::string& version() const { return version_; } |
139 const base::FilePath& path() const { return path_; } | 140 const base::FilePath& path() const { return path_; } |
140 const ppapi::PpapiPermissions& permissions() const { return permissions_; } | 141 const ppapi::PpapiPermissions& permissions() const { return permissions_; } |
141 | 142 |
142 PepperPluginInstanceImpl* CreateInstance(RenderFrameImpl* render_frame, | 143 PepperPluginInstanceImpl* CreateInstance(RenderFrameImpl* render_frame, |
143 blink::WebPluginContainer* container, | 144 blink::WebPluginContainer* container, |
144 const GURL& plugin_url); | 145 const GURL& plugin_url, |
| 146 const blink::WebURL& top_frame_url); |
145 | 147 |
146 // Returns "some" plugin instance associated with this module. This is not | 148 // Returns "some" plugin instance associated with this module. This is not |
147 // guaranteed to be any one in particular. This is normally used to execute | 149 // guaranteed to be any one in particular. This is normally used to execute |
148 // callbacks up to the browser layer that are not inherently per-instance, | 150 // callbacks up to the browser layer that are not inherently per-instance, |
149 // but the helper lives only on the plugin instance so we need one of them. | 151 // but the helper lives only on the plugin instance so we need one of them. |
150 PepperPluginInstanceImpl* GetSomeInstance() const; | 152 PepperPluginInstanceImpl* GetSomeInstance() const; |
151 | 153 |
152 const PluginInstanceSet& GetAllInstances() const { return instances_; } | 154 const PluginInstanceSet& GetAllInstances() const { return instances_; } |
153 | 155 |
154 // Calls the plugin's GetInterface and returns the given interface pointer, | 156 // Calls the plugin's GetInterface and returns the given interface pointer, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 PluginInstanceSet instances_; | 272 PluginInstanceSet instances_; |
271 | 273 |
272 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); | 274 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); |
273 | 275 |
274 DISALLOW_COPY_AND_ASSIGN(PluginModule); | 276 DISALLOW_COPY_AND_ASSIGN(PluginModule); |
275 }; | 277 }; |
276 | 278 |
277 } // namespace content | 279 } // namespace content |
278 | 280 |
279 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_ | 281 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_ |
OLD | NEW |