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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 PP_Instance instance) OVERRIDE; | 42 PP_Instance instance) OVERRIDE; |
43 virtual thunk::PPB_Instance_API* GetInstanceAPI( | 43 virtual thunk::PPB_Instance_API* GetInstanceAPI( |
44 PP_Instance instance) OVERRIDE; | 44 PP_Instance instance) OVERRIDE; |
45 virtual thunk::ResourceCreationAPI* GetResourceCreationAPI( | 45 virtual thunk::ResourceCreationAPI* GetResourceCreationAPI( |
46 PP_Instance instance) OVERRIDE; | 46 PP_Instance instance) OVERRIDE; |
47 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; | 47 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; |
48 virtual std::string GetCmdLine() OVERRIDE; | 48 virtual std::string GetCmdLine() OVERRIDE; |
49 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; | 49 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; |
50 virtual base::Lock* GetProxyLock() OVERRIDE; | 50 virtual base::Lock* GetProxyLock() OVERRIDE; |
51 virtual void LogWithSource(PP_Instance instance, | 51 virtual void LogWithSource(PP_Instance instance, |
52 PP_LogLevel_Dev level, | 52 PP_LogLevel level, |
53 const std::string& source, | 53 const std::string& source, |
54 const std::string& value) OVERRIDE; | 54 const std::string& value) OVERRIDE; |
55 virtual void BroadcastLogWithSource(PP_Module module, | 55 virtual void BroadcastLogWithSource(PP_Module module, |
56 PP_LogLevel_Dev level, | 56 PP_LogLevel level, |
57 const std::string& source, | 57 const std::string& source, |
58 const std::string& value) OVERRIDE; | 58 const std::string& value) OVERRIDE; |
59 virtual MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; | 59 virtual MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; |
60 | 60 |
61 // Getters for the plugin-specific versions. | 61 // Getters for the plugin-specific versions. |
62 PluginResourceTracker* plugin_resource_tracker() { | 62 PluginResourceTracker* plugin_resource_tracker() { |
63 return &plugin_resource_tracker_; | 63 return &plugin_resource_tracker_; |
64 } | 64 } |
65 PluginVarTracker* plugin_var_tracker() { | 65 PluginVarTracker* plugin_var_tracker() { |
66 return &plugin_var_tracker_; | 66 return &plugin_var_tracker_; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // called. | 131 // called. |
132 std::string command_line_; | 132 std::string command_line_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); | 134 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace proxy | 137 } // namespace proxy |
138 } // namespace ppapi | 138 } // namespace ppapi |
139 | 139 |
140 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 140 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |