| 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 PP_Var MakeResourcePPVar(const IPC::Message& creation_message, |
| 63 int pending_renderer_id, |
| 64 int pending_browser_id, |
| 65 PP_Instance instance) 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 Loading... |
| 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_ |
| OLD | NEW |