OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |