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

Side by Side Diff: webkit/plugins/ppapi/plugin_module.h

Issue 15947004: Allow renderer to create pepper ResourceHosts in the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // must be called before calling InitAsProxiedNaCl. Returns a NaCl result code 122 // must be called before calling InitAsProxiedNaCl. Returns a NaCl result code
123 // indicating whether the proxy started successfully or there was an error. 123 // indicating whether the proxy started successfully or there was an error.
124 PP_NaClResult InitAsProxiedNaCl(PluginInstance* instance); 124 PP_NaClResult InitAsProxiedNaCl(PluginInstance* instance);
125 125
126 bool IsProxied() const; 126 bool IsProxied() const;
127 127
128 // Returns the peer process ID if the plugin is running out of process; 128 // Returns the peer process ID if the plugin is running out of process;
129 // returns |base::kNullProcessId| otherwise. 129 // returns |base::kNullProcessId| otherwise.
130 base::ProcessId GetPeerProcessId(); 130 base::ProcessId GetPeerProcessId();
131 131
132 // Returns the plugin child process ID if the plugin is running out of
133 // of process. Returns 0 otherwise. This is the ID that the browser process
yzshen1 2013/05/29 17:57:21 two 'of'.
raymes 2013/06/04 04:11:11 Done.
134 // uses to idetify the child process for the plugin. This isn't directly
135 // useful from our process (the renderer) except in messages to the browser to
136 // disambiguate plugins.
137 int GetPluginChildId();
138
132 static const PPB_Core* GetCore(); 139 static const PPB_Core* GetCore();
133 140
134 // Returns a pointer to the local GetInterface function for retrieving 141 // Returns a pointer to the local GetInterface function for retrieving
135 // PPB interfaces. 142 // PPB interfaces.
136 static GetInterfaceFunc GetLocalGetInterfaceFunc(); 143 static GetInterfaceFunc GetLocalGetInterfaceFunc();
137 144
138 // Returns whether an interface is supported. This method can be called from 145 // Returns whether an interface is supported. This method can be called from
139 // the browser process and used for interface matching before plugin 146 // the browser process and used for interface matching before plugin
140 // registration. 147 // registration.
141 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager 148 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 267
261 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); 268 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance);
262 269
263 DISALLOW_COPY_AND_ASSIGN(PluginModule); 270 DISALLOW_COPY_AND_ASSIGN(PluginModule);
264 }; 271 };
265 272
266 } // namespace ppapi 273 } // namespace ppapi
267 } // namespace webkit 274 } // namespace webkit
268 275
269 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ 276 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698