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 WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ppapi/shared_impl/callback_tracker.h" | 9 #include "ppapi/shared_impl/callback_tracker.h" |
10 #include "ppapi/shared_impl/ppapi_globals.h" | 10 #include "ppapi/shared_impl/ppapi_globals.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; | 47 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; |
48 virtual base::Lock* GetProxyLock() OVERRIDE; | 48 virtual base::Lock* GetProxyLock() OVERRIDE; |
49 virtual void LogWithSource(PP_Instance instance, | 49 virtual void LogWithSource(PP_Instance instance, |
50 PP_LogLevel_Dev level, | 50 PP_LogLevel_Dev level, |
51 const std::string& source, | 51 const std::string& source, |
52 const std::string& value) OVERRIDE; | 52 const std::string& value) OVERRIDE; |
53 virtual void BroadcastLogWithSource(PP_Module module, | 53 virtual void BroadcastLogWithSource(PP_Module module, |
54 PP_LogLevel_Dev level, | 54 PP_LogLevel_Dev level, |
55 const std::string& source, | 55 const std::string& source, |
56 const std::string& value) OVERRIDE; | 56 const std::string& value) OVERRIDE; |
| 57 virtual ::ppapi::MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; |
57 | 58 |
58 HostVarTracker* host_var_tracker() { | 59 HostVarTracker* host_var_tracker() { |
59 return &host_var_tracker_; | 60 return &host_var_tracker_; |
60 } | 61 } |
61 | 62 |
62 // PP_Modules ---------------------------------------------------------------- | 63 // PP_Modules ---------------------------------------------------------------- |
63 | 64 |
64 // Adds a new plugin module to the list of tracked module, and returns a new | 65 // Adds a new plugin module to the list of tracked module, and returns a new |
65 // module handle to identify it. | 66 // module handle to identify it. |
66 PP_Module AddModule(PluginModule* module); | 67 PP_Module AddModule(PluginModule* module); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 typedef std::map<PP_Module, PluginModule*> ModuleMap; | 109 typedef std::map<PP_Module, PluginModule*> ModuleMap; |
109 ModuleMap module_map_; | 110 ModuleMap module_map_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(HostGlobals); | 112 DISALLOW_COPY_AND_ASSIGN(HostGlobals); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace ppapi | 115 } // namespace ppapi |
115 } // namespace webkit | 116 } // namespace webkit |
116 | 117 |
117 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ | 118 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ |
OLD | NEW |