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

Side by Side Diff: content/renderer/pepper/plugin_module.h

Issue 20987009: Rename PepperPluginDelegateImpl to PepperHelperImpl after getting rid of the PluginDelegate interfa… (Closed) Base URL: svn://chrome-svn/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
OLDNEW
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
36 class CallbackTracker; 36 class CallbackTracker;
37 class WebKitForwarding; 37 class WebKitForwarding;
38 } // namespace ppapi 38 } // namespace ppapi
39 39
40 namespace WebKit { 40 namespace WebKit {
41 class WebPluginContainer; 41 class WebPluginContainer;
42 } // namespace WebKit 42 } // namespace WebKit
43 43
44 namespace content { 44 namespace content {
45 class HostDispatcherWrapper; 45 class HostDispatcherWrapper;
46 class PepperPluginDelegateImpl; 46 class PepperHelperImpl;
47 class PepperPluginInstanceImpl; 47 class PepperPluginInstanceImpl;
48 class PepperBroker; 48 class PepperBroker;
49 class RendererPpapiHostImpl; 49 class RendererPpapiHostImpl;
50 class RenderViewImpl; 50 class RenderViewImpl;
51 51
52 // Represents one plugin library loaded into one renderer. This library may 52 // Represents one plugin library loaded into one renderer. This library may
53 // have multiple instances. 53 // have multiple instances.
54 // 54 //
55 // Note: to get from a PP_Instance to a PepperPluginInstance*, use the 55 // Note: to get from a PP_Instance to a PepperPluginInstance*, use the
56 // ResourceTracker. 56 // ResourceTracker.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Returns the module handle. This may be used before Init() is called (the 133 // Returns the module handle. This may be used before Init() is called (the
134 // proxy needs this information to set itself up properly). 134 // proxy needs this information to set itself up properly).
135 PP_Module pp_module() const { return pp_module_; } 135 PP_Module pp_module() const { return pp_module_; }
136 136
137 const std::string& name() const { return name_; } 137 const std::string& name() const { return name_; }
138 const base::FilePath& path() const { return path_; } 138 const base::FilePath& path() const { return path_; }
139 const ::ppapi::PpapiPermissions& permissions() const { return permissions_; } 139 const ::ppapi::PpapiPermissions& permissions() const { return permissions_; }
140 140
141 PepperPluginInstanceImpl* CreateInstance( 141 PepperPluginInstanceImpl* CreateInstance(
142 PepperPluginDelegateImpl* delegate, 142 PepperHelperImpl* helper,
143 RenderViewImpl* render_view, 143 RenderViewImpl* render_view,
144 WebKit::WebPluginContainer* container, 144 WebKit::WebPluginContainer* container,
145 const GURL& plugin_url); 145 const GURL& plugin_url);
146 146
147 // Returns "some" plugin instance associated with this module. This is not 147 // Returns "some" plugin instance associated with this module. This is not
148 // guaranteed to be any one in particular. This is normally used to execute 148 // guaranteed to be any one in particular. This is normally used to execute
149 // callbacks up to the browser layer that are not inherently per-instance, 149 // callbacks up to the browser layer that are not inherently per-instance,
150 // but the delegate lives only on the plugin instance so we need one of them. 150 // but the helper lives only on the plugin instance so we need one of them.
151 PepperPluginInstanceImpl* GetSomeInstance() const; 151 PepperPluginInstanceImpl* GetSomeInstance() const;
152 152
153 const PluginInstanceSet& GetAllInstances() const { return instances_; } 153 const PluginInstanceSet& GetAllInstances() const { return instances_; }
154 154
155 // Calls the plugin's GetInterface and returns the given interface pointer, 155 // Calls the plugin's GetInterface and returns the given interface pointer,
156 // which could be NULL. 156 // which could be NULL.
157 const void* GetPluginInterface(const char* name) const; 157 const void* GetPluginInterface(const char* name) const;
158 158
159 // This module is associated with a set of instances. The PluginInstance 159 // This module is associated with a set of instances. The PluginInstance
160 // object declares its association with this module in its destructor and 160 // object declares its association with this module in its destructor and
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 PluginInstanceSet instances_; 247 PluginInstanceSet instances_;
248 248
249 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); 249 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance);
250 250
251 DISALLOW_COPY_AND_ASSIGN(PluginModule); 251 DISALLOW_COPY_AND_ASSIGN(PluginModule);
252 }; 252 };
253 253
254 } // namespace content 254 } // namespace content
255 255
256 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_ 256 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_MODULE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.cc ('k') | content/renderer/pepper/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698