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 MakeResourcePPVarFromMessage( |
| 63 PP_Instance instance, |
| 64 const IPC::Message& creation_message, |
| 65 int pending_renderer_id, |
| 66 int pending_browser_id) OVERRIDE; |
62 virtual ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE; | 67 virtual ResourceVar* MakeResourceVar(PP_Resource pp_resource) OVERRIDE; |
63 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE; | 68 virtual void DidDeleteInstance(PP_Instance instance) OVERRIDE; |
64 virtual int TrackSharedMemoryHandle(PP_Instance instance, | 69 virtual int TrackSharedMemoryHandle(PP_Instance instance, |
65 base::SharedMemoryHandle file, | 70 base::SharedMemoryHandle file, |
66 uint32 size_in_bytes) OVERRIDE; | 71 uint32 size_in_bytes) OVERRIDE; |
67 virtual bool StopTrackingSharedMemoryHandle(int id, | 72 virtual bool StopTrackingSharedMemoryHandle(int id, |
68 PP_Instance instance, | 73 PP_Instance instance, |
69 base::SharedMemoryHandle* handle, | 74 base::SharedMemoryHandle* handle, |
70 uint32* size_in_bytes) OVERRIDE; | 75 uint32* size_in_bytes) OVERRIDE; |
71 | 76 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 UserDataToPluginImplementedVarMap; | 202 UserDataToPluginImplementedVarMap; |
198 UserDataToPluginImplementedVarMap user_data_to_plugin_; | 203 UserDataToPluginImplementedVarMap user_data_to_plugin_; |
199 | 204 |
200 DISALLOW_COPY_AND_ASSIGN(PluginVarTracker); | 205 DISALLOW_COPY_AND_ASSIGN(PluginVarTracker); |
201 }; | 206 }; |
202 | 207 |
203 } // namespace proxy | 208 } // namespace proxy |
204 } // namespace ppapi | 209 } // namespace ppapi |
205 | 210 |
206 #endif // PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_ | 211 #endif // PPAPI_PROXY_PLUGIN_VAR_TRACKER_H_ |
OLD | NEW |