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

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

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Returns true on success. False means that the plugin can not be used. 83 // Returns true on success. False means that the plugin can not be used.
84 bool InitAsLibrary(const FilePath& path); 84 bool InitAsLibrary(const FilePath& path);
85 85
86 // Initializes this module for the given out of process proxy. This takes 86 // Initializes this module for the given out of process proxy. This takes
87 // ownership of the given pointer, even in the failure case. 87 // ownership of the given pointer, even in the failure case.
88 void InitAsProxied(PluginDelegate::OutOfProcessProxy* out_of_process_proxy); 88 void InitAsProxied(PluginDelegate::OutOfProcessProxy* out_of_process_proxy);
89 89
90 // Initializes this module for the given NaCl proxy. This takes 90 // Initializes this module for the given NaCl proxy. This takes
91 // ownership of the given pointer, even in the failure case. 91 // ownership of the given pointer, even in the failure case.
92 void InitAsProxiedNaCl( 92 void InitAsProxiedNaCl(
93 PluginDelegate::OutOfProcessProxy* out_of_process_proxy, 93 scoped_ptr<PluginDelegate::OutOfProcessProxy> out_of_process_proxy,
94 PP_Instance instance); 94 PP_Instance instance);
95 95
96 static const PPB_Core* GetCore(); 96 static const PPB_Core* GetCore();
97 97
98 // Returns a pointer to the local GetInterface function for retrieving 98 // Returns a pointer to the local GetInterface function for retrieving
99 // PPB interfaces. 99 // PPB interfaces.
100 static GetInterfaceFunc GetLocalGetInterfaceFunc(); 100 static GetInterfaceFunc GetLocalGetInterfaceFunc();
101 101
102 // Returns the module handle. This may be used before Init() is called (the 102 // Returns the module handle. This may be used before Init() is called (the
103 // proxy needs this information to set itself up properly). 103 // proxy needs this information to set itself up properly).
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // The name and file location of the module. 196 // The name and file location of the module.
197 const std::string name_; 197 const std::string name_;
198 const FilePath path_; 198 const FilePath path_;
199 199
200 // Non-owning pointers to all instances associated with this module. When 200 // Non-owning pointers to all instances associated with this module. When
201 // there are no more instances, this object should be deleted. 201 // there are no more instances, this object should be deleted.
202 PluginInstanceSet instances_; 202 PluginInstanceSet instances_;
203 203
204 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance); 204 PP_Bool (*reserve_instance_id_)(PP_Module, PP_Instance);
205 205
206 bool nacl_ipc_proxy_;
207
206 DISALLOW_COPY_AND_ASSIGN(PluginModule); 208 DISALLOW_COPY_AND_ASSIGN(PluginModule);
207 }; 209 };
208 210
209 } // namespace ppapi 211 } // namespace ppapi
210 } // namespace webkit 212 } // namespace webkit
211 213
212 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_ 214 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698