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

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

Issue 23809016: [PPAPI] ResourceVar now reference counts its PP_Resource in the plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix Windows compile. Created 7 years, 2 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
« no previous file with comments | « ppapi/proxy/plugin_resource_var.cc ('k') | ppapi/proxy/plugin_var_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE;
62 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE; 63 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE;
63 virtual int TrackSharedMemoryHandle(PP_Instance instance, 64 virtual int TrackSharedMemoryHandle(PP_Instance instance,
64 base::SharedMemoryHandle file, 65 base::SharedMemoryHandle file,
65 uint32 size_in_bytes) OVERRIDE; 66 uint32 size_in_bytes) OVERRIDE;
66 virtual bool StopTrackingSharedMemoryHandle(int id, 67 virtual bool StopTrackingSharedMemoryHandle(int id,
67 PP_Instance instance, 68 PP_Instance instance,
68 base::SharedMemoryHandle* handle, 69 base::SharedMemoryHandle* handle,
69 uint32* size_in_bytes) OVERRIDE; 70 uint32* size_in_bytes) OVERRIDE;
70 71
71 // Notification that a plugin-implemented object (PPP_Class) was created by 72 // Notification that a plugin-implemented object (PPP_Class) was created by
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 UserDataToPluginImplementedVarMap; 197 UserDataToPluginImplementedVarMap;
197 UserDataToPluginImplementedVarMap user_data_to_plugin_; 198 UserDataToPluginImplementedVarMap user_data_to_plugin_;
198 199
199 DISALLOW_COPY_AND_ASSIGN(PluginVarTracker); 200 DISALLOW_COPY_AND_ASSIGN(PluginVarTracker);
200 }; 201 };
201 202
202 } // namespace proxy 203 } // namespace proxy
203 } // namespace ppapi 204 } // namespace ppapi
204 205
205 #endif // PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_ 206 #endif // PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource_var.cc ('k') | ppapi/proxy/plugin_var_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698