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_GLOBALS_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
6 #define PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 6 #define PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 inline static PluginGlobals* Get() { | 32 inline static PluginGlobals* Get() { |
33 DCHECK(PpapiGlobals::Get()->IsPluginGlobals()); | 33 DCHECK(PpapiGlobals::Get()->IsPluginGlobals()); |
34 return static_cast<PluginGlobals*>(PpapiGlobals::Get()); | 34 return static_cast<PluginGlobals*>(PpapiGlobals::Get()); |
35 } | 35 } |
36 | 36 |
37 // PpapiGlobals implementation. | 37 // PpapiGlobals implementation. |
38 virtual ResourceTracker* GetResourceTracker() OVERRIDE; | 38 virtual ResourceTracker* GetResourceTracker() OVERRIDE; |
39 virtual VarTracker* GetVarTracker() OVERRIDE; | 39 virtual VarTracker* GetVarTracker() OVERRIDE; |
40 virtual CallbackTracker* GetCallbackTrackerForInstance( | 40 virtual CallbackTracker* GetCallbackTrackerForInstance( |
41 PP_Instance instance) OVERRIDE; | 41 PP_Instance instance) OVERRIDE; |
42 virtual FunctionGroupBase* GetFunctionAPI(PP_Instance inst, | 42 virtual thunk::PPB_Instance_API* GetInstanceAPI( |
43 ApiID id) OVERRIDE; | 43 PP_Instance instance) OVERRIDE; |
| 44 virtual thunk::ResourceCreationAPI* GetResourceCreationAPI( |
| 45 PP_Instance instance) OVERRIDE; |
44 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; | 46 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; |
45 virtual std::string GetCmdLine() OVERRIDE; | 47 virtual std::string GetCmdLine() OVERRIDE; |
46 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; | 48 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; |
47 virtual base::Lock* GetProxyLock() OVERRIDE; | 49 virtual base::Lock* GetProxyLock() OVERRIDE; |
48 virtual void LogWithSource(PP_Instance instance, | 50 virtual void LogWithSource(PP_Instance instance, |
49 PP_LogLevel_Dev level, | 51 PP_LogLevel_Dev level, |
50 const std::string& source, | 52 const std::string& source, |
51 const std::string& value) OVERRIDE; | 53 const std::string& value) OVERRIDE; |
52 virtual void BroadcastLogWithSource(PP_Module module, | 54 virtual void BroadcastLogWithSource(PP_Module module, |
53 PP_LogLevel_Dev level, | 55 PP_LogLevel_Dev level, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // called. | 115 // called. |
114 std::string command_line_; | 116 std::string command_line_; |
115 | 117 |
116 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); | 118 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); |
117 }; | 119 }; |
118 | 120 |
119 } // namespace proxy | 121 } // namespace proxy |
120 } // namespace ppapi | 122 } // namespace ppapi |
121 | 123 |
122 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 124 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |