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

Side by Side Diff: ppapi/proxy/plugin_var_tracker.h

Issue 26564009: [PPAPI] It is now possible to pass filesystems from JavaScript to NaCl modules. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Raymes nits. Created 7 years, 1 month 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 PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_
6 #define PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_ 6 #define PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 PluginDispatcher* DispatcherForPluginObject( 53 PluginDispatcher* DispatcherForPluginObject(
54 const PP_Var& plugin_object) const; 54 const PP_Var& plugin_object) const;
55 55
56 // Like Release() but the var is identified by its host object ID (as 56 // Like Release() but the var is identified by its host object ID (as
57 // returned by GetHostObject). 57 // returned by GetHostObject).
58 void ReleaseHostObject(PluginDispatcher* dispatcher, 58 void ReleaseHostObject(PluginDispatcher* dispatcher,
59 const PP_Var& host_object); 59 const PP_Var& host_object);
60 60
61 // VarTracker public overrides. 61 // VarTracker public overrides.
62 virtual PP_Var MakeResourcePPVar(PP_Instance instance,
63 const IPC::Message& creation_message,
64 int pending_renderer_id,
65 int pending_browser_id) OVERRIDE;
62 virtual ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE; 66 virtual ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE;
63 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE; 67 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE;
64 virtual int TrackSharedMemoryHandle(PP_Instance instance, 68 virtual int TrackSharedMemoryHandle(PP_Instance instance,
65 base::SharedMemoryHandle file, 69 base::SharedMemoryHandle file,
66 uint32 size_in_bytes) OVERRIDE; 70 uint32 size_in_bytes) OVERRIDE;
67 virtual bool StopTrackingSharedMemoryHandle(int id, 71 virtual bool StopTrackingSharedMemoryHandle(int id,
68 PP_Instance instance, 72 PP_Instance instance,
69 base::SharedMemoryHandle* handle, 73 base::SharedMemoryHandle* handle,
70 uint32* size_in_bytes) OVERRIDE; 74 uint32* size_in_bytes) OVERRIDE;
71 75
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 UserDataToPluginImplementedVarMap; 201 UserDataToPluginImplementedVarMap;
198 UserDataToPluginImplementedVarMap user_data_to_plugin_; 202 UserDataToPluginImplementedVarMap user_data_to_plugin_;
199 203
200 DISALLOW_COPY_AND_ASSIGN(PluginVarTracker); 204 DISALLOW_COPY_AND_ASSIGN(PluginVarTracker);
201 }; 205 };
202 206
203 } // namespace proxy 207 } // namespace proxy
204 } // namespace ppapi 208 } // namespace ppapi
205 209
206 #endif // PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_ 210 #endif // PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698