| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/proxy/plugin_resource_tracker.h" | 9 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 10 #include "ppapi/proxy/plugin_var_tracker.h" | 10 #include "ppapi/proxy/plugin_var_tracker.h" |
| 11 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 11 #include "ppapi/shared_impl/ppapi_globals.h" | 12 #include "ppapi/shared_impl/ppapi_globals.h" |
| 12 | 13 |
| 13 namespace ppapi { | 14 namespace ppapi { |
| 14 namespace proxy { | 15 namespace proxy { |
| 15 | 16 |
| 16 class PluginGlobals : public PpapiGlobals { | 17 class PPAPI_PROXY_EXPORT PluginGlobals : public PpapiGlobals { |
| 17 public: | 18 public: |
| 18 PluginGlobals(); | 19 PluginGlobals(); |
| 19 virtual ~PluginGlobals(); | 20 virtual ~PluginGlobals(); |
| 20 | 21 |
| 21 // Getter for the global singleton. Generally, you should use | 22 // Getter for the global singleton. Generally, you should use |
| 22 // PpapiGlobals::Get() when possible. Use this only when you need some | 23 // PpapiGlobals::Get() when possible. Use this only when you need some |
| 23 // plugin-specific functionality. | 24 // plugin-specific functionality. |
| 24 inline static PluginGlobals* Get() { return plugin_globals_; } | 25 inline static PluginGlobals* Get() { return plugin_globals_; } |
| 25 | 26 |
| 26 // PpapiGlobals implementation. | 27 // PpapiGlobals implementation. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 PluginResourceTracker plugin_resource_tracker_; | 42 PluginResourceTracker plugin_resource_tracker_; |
| 42 PluginVarTracker plugin_var_tracker_; | 43 PluginVarTracker plugin_var_tracker_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); | 45 DISALLOW_COPY_AND_ASSIGN(PluginGlobals); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace proxy | 48 } // namespace proxy |
| 48 } // namespace ppapi | 49 } // namespace ppapi |
| 49 | 50 |
| 50 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ | 51 #endif // PPAPI_PROXY_PLUGIN_GLOBALS_H_ |
| OLD | NEW |