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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_Dev 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_Dev 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 | 60 |
60 // Getters for the plugin-specific versions. | 61 // Getters for the plugin-specific versions. |
61 PluginResourceTracker* plugin_resource_tracker() { | 62 PluginResourceTracker* plugin_resource_tracker() { |
62 return &plugin_resource_tracker_; | 63 return &plugin_resource_tracker_; |
63 } | 64 } |
64 PluginVarTracker* plugin_var_tracker() { | 65 PluginVarTracker* plugin_var_tracker() { |
65 return &plugin_var_tracker_; | 66 return &plugin_var_tracker_; |
66 } | 67 } |
67 | 68 |
68 // The embedder should call set_proxy_delegate during startup. | 69 // The embedder should call set_proxy_delegate during startup. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // called. | 125 // called. |
125 std::string command_line_; | 126 std::string command_line_; |
126 | 127 |
127 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); | 128 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); |
128 }; | 129 }; |
129 | 130 |
130 } // namespace proxy | 131 } // namespace proxy |
131 } // namespace ppapi | 132 } // namespace ppapi |
132 | 133 |
133 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 134 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
OLD | NEW |