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 29 matching lines...) Expand all Loading... |
40 PP_Instance instance) OVERRIDE; | 40 PP_Instance instance) OVERRIDE; |
41 virtual ::ppapi::thunk::PPB_Instance_API* GetInstanceAPI( | 41 virtual ::ppapi::thunk::PPB_Instance_API* GetInstanceAPI( |
42 PP_Instance instance) OVERRIDE; | 42 PP_Instance instance) OVERRIDE; |
43 virtual ::ppapi::thunk::ResourceCreationAPI* GetResourceCreationAPI( | 43 virtual ::ppapi::thunk::ResourceCreationAPI* GetResourceCreationAPI( |
44 PP_Instance instance) OVERRIDE; | 44 PP_Instance instance) OVERRIDE; |
45 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; | 45 virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE; |
46 virtual std::string GetCmdLine() OVERRIDE; | 46 virtual std::string GetCmdLine() OVERRIDE; |
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 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 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 virtual ::ppapi::MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; |
58 | 58 |
59 HostVarTracker* host_var_tracker() { | 59 HostVarTracker* host_var_tracker() { |
60 return &host_var_tracker_; | 60 return &host_var_tracker_; |
61 } | 61 } |
62 | 62 |
63 // PP_Modules ---------------------------------------------------------------- | 63 // PP_Modules ---------------------------------------------------------------- |
64 | 64 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 typedef std::map<PP_Module, PluginModule*> ModuleMap; | 109 typedef std::map<PP_Module, PluginModule*> ModuleMap; |
110 ModuleMap module_map_; | 110 ModuleMap module_map_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(HostGlobals); | 112 DISALLOW_COPY_AND_ASSIGN(HostGlobals); |
113 }; | 113 }; |
114 | 114 |
115 } // namespace ppapi | 115 } // namespace ppapi |
116 } // namespace webkit | 116 } // namespace webkit |
117 | 117 |
118 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ | 118 #endif // WEBKIT_PLUGINS_PPAPI_HOST_GLOBALS_H_ |
OLD | NEW |