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 CONTENT_RENDERER_PEPPER_HOST_GLOBALS_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_HOST_GLOBALS_H_ |
6 #define CONTENT_RENDERER_PEPPER_HOST_GLOBALS_H_ | 6 #define CONTENT_RENDERER_PEPPER_HOST_GLOBALS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/renderer/pepper/host_var_tracker.h" | 9 #include "content/renderer/pepper/host_var_tracker.h" |
10 #include "ppapi/shared_impl/callback_tracker.h" | 10 #include "ppapi/shared_impl/callback_tracker.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; | 44 virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE; |
45 virtual void LogWithSource(PP_Instance instance, | 45 virtual void LogWithSource(PP_Instance instance, |
46 PP_LogLevel level, | 46 PP_LogLevel level, |
47 const std::string& source, | 47 const std::string& source, |
48 const std::string& value) OVERRIDE; | 48 const std::string& value) OVERRIDE; |
49 virtual void BroadcastLogWithSource(PP_Module module, | 49 virtual void BroadcastLogWithSource(PP_Module module, |
50 PP_LogLevel 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 ppapi::MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; | 53 virtual ppapi::MessageLoopShared* GetCurrentMessageLoop() OVERRIDE; |
54 virtual base::TaskRunner* GetFileTaskRunner(PP_Instance instance) OVERRIDE; | 54 virtual base::TaskRunner* GetFileTaskRunner() OVERRIDE; |
55 | 55 |
56 HostVarTracker* host_var_tracker() { | 56 HostVarTracker* host_var_tracker() { |
57 return &host_var_tracker_; | 57 return &host_var_tracker_; |
58 } | 58 } |
59 | 59 |
60 // PP_Modules ---------------------------------------------------------------- | 60 // PP_Modules ---------------------------------------------------------------- |
61 | 61 |
62 // Adds a new plugin module to the list of tracked module, and returns a new | 62 // Adds a new plugin module to the list of tracked module, and returns a new |
63 // module handle to identify it. | 63 // module handle to identify it. |
64 PP_Module AddModule(PluginModule* module); | 64 PP_Module AddModule(PluginModule* module); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // destructor will notify us when the module is deleted. | 105 // destructor will notify us when the module is deleted. |
106 typedef std::map<PP_Module, PluginModule*> ModuleMap; | 106 typedef std::map<PP_Module, PluginModule*> ModuleMap; |
107 ModuleMap module_map_; | 107 ModuleMap module_map_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(HostGlobals); | 109 DISALLOW_COPY_AND_ASSIGN(HostGlobals); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
113 | 113 |
114 #endif // CONTENT_RENDERER_PEPPER_HOST_GLOBALS_H_ | 114 #endif // CONTENT_RENDERER_PEPPER_HOST_GLOBALS_H_ |
OLD | NEW |