OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ppapi/proxy/plugin_globals.h" | 5 #include "ppapi/proxy/plugin_globals.h" |
6 | 6 |
7 #include "ppapi/proxy/plugin_dispatcher.h" | 7 #include "ppapi/proxy/plugin_dispatcher.h" |
8 | 8 |
9 namespace ppapi { | 9 namespace ppapi { |
10 namespace proxy { | 10 namespace proxy { |
(...skipping 11 matching lines...) Expand all Loading... |
22 } | 22 } |
23 | 23 |
24 ResourceTracker* PluginGlobals::GetResourceTracker() { | 24 ResourceTracker* PluginGlobals::GetResourceTracker() { |
25 return &plugin_resource_tracker_; | 25 return &plugin_resource_tracker_; |
26 } | 26 } |
27 | 27 |
28 VarTracker* PluginGlobals::GetVarTracker() { | 28 VarTracker* PluginGlobals::GetVarTracker() { |
29 return &plugin_var_tracker_; | 29 return &plugin_var_tracker_; |
30 } | 30 } |
31 | 31 |
32 FunctionGroupBase* PluginGlobals::GetFunctionAPI(PP_Instance inst, | 32 FunctionGroupBase* PluginGlobals::GetFunctionAPI(PP_Instance inst, ApiID id) { |
33 proxy::InterfaceID id) { | |
34 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(inst); | 33 PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(inst); |
35 if (dispatcher) | 34 if (dispatcher) |
36 return dispatcher->GetFunctionAPI(id); | 35 return dispatcher->GetFunctionAPI(id); |
37 return NULL; | 36 return NULL; |
38 } | 37 } |
39 | 38 |
40 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) { | 39 PP_Module PluginGlobals::GetModuleForInstance(PP_Instance instance) { |
41 // Currently proxied plugins don't use the PP_Module for anything useful. | 40 // Currently proxied plugins don't use the PP_Module for anything useful. |
42 return 0; | 41 return 0; |
43 } | 42 } |
44 | 43 |
45 } // namespace proxy | 44 } // namespace proxy |
46 } // namespace ppapi | 45 } // namespace ppapi |
OLD | NEW |