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

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

Issue 11490014: PPAPI: Make Messaging not PostTask and copy when out-of-process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Creates a new module for a NaCl instance that will be using the IPC proxy. 108 // Creates a new module for a NaCl instance that will be using the IPC proxy.
109 // We can't use the existing module, or new instances of the plugin can't 109 // We can't use the existing module, or new instances of the plugin can't
110 // be created. 110 // be created.
111 scoped_refptr<PluginModule> CreateModuleForNaClInstance(); 111 scoped_refptr<PluginModule> CreateModuleForNaClInstance();
112 112
113 // Initializes the NaCl module for the out of process proxy. InitAsProxied 113 // Initializes the NaCl module for the out of process proxy. InitAsProxied
114 // must be called before calling InitAsProxiedNaCl. Returns true on success. 114 // must be called before calling InitAsProxiedNaCl. Returns true on success.
115 bool InitAsProxiedNaCl(PluginInstance* instance); 115 bool InitAsProxiedNaCl(PluginInstance* instance);
116 116
117 bool IsProxied() const;
118
117 static const PPB_Core* GetCore(); 119 static const PPB_Core* GetCore();
118 120
119 // Returns a pointer to the local GetInterface function for retrieving 121 // Returns a pointer to the local GetInterface function for retrieving
120 // PPB interfaces. 122 // PPB interfaces.
121 static GetInterfaceFunc GetLocalGetInterfaceFunc(); 123 static GetInterfaceFunc GetLocalGetInterfaceFunc();
122 124
123 // Returns whether an interface is supported. This method can be called from 125 // Returns whether an interface is supported. This method can be called from
124 // the browser process and used for interface matching before plugin 126 // the browser process and used for interface matching before plugin
125 // registration. 127 // registration.
126 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager 128 // NOTE: those custom interfaces provided by PpapiInterfaceFactoryManager
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 239
238 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); 240 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance);
239 241
240 DISALLOW_COPY_AND_ASSIGN(PluginModule); 242 DISALLOW_COPY_AND_ASSIGN(PluginModule);
241 }; 243 };
242 244
243 } // namespace ppapi 245 } // namespace ppapi
244 } // namespace webkit 246 } // namespace webkit
245 247
246 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ 248 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698