| 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_PROXY_MODULE_H_ | 5 #ifndef PPAPI_PROXY_PROXY_MODULE_H_ |
| 6 #define PPAPI_PROXY_PROXY_MODULE_H_ | 6 #define PPAPI_PROXY_PROXY_MODULE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "ppapi/proxy/ppapi_proxy_export.h" | 11 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 12 | 12 |
| 13 namespace base { |
| 13 template<typename T> struct DefaultSingletonTraits; | 14 template<typename T> struct DefaultSingletonTraits; |
| 15 } |
| 14 | 16 |
| 15 namespace ppapi { | 17 namespace ppapi { |
| 16 namespace proxy { | 18 namespace proxy { |
| 17 | 19 |
| 18 class PPAPI_PROXY_EXPORT ProxyModule { | 20 class PPAPI_PROXY_EXPORT ProxyModule { |
| 19 public: | 21 public: |
| 20 // The global singleton getter. | 22 // The global singleton getter. |
| 21 static ProxyModule* GetInstance(); | 23 static ProxyModule* GetInstance(); |
| 22 | 24 |
| 23 // TODO(viettrungluu): Generalize this for use with other plugins if it proves | 25 // TODO(viettrungluu): Generalize this for use with other plugins if it proves |
| 24 // necessary. (Currently, we can't do this easily, since we can't tell from | 26 // necessary. (Currently, we can't do this easily, since we can't tell from |
| 25 // |PpapiPluginMain()| which plugin will be loaded.) | 27 // |PpapiPluginMain()| which plugin will be loaded.) |
| 26 const std::string& GetFlashCommandLineArgs(); | 28 const std::string& GetFlashCommandLineArgs(); |
| 27 void SetFlashCommandLineArgs(const std::string& args); | 29 void SetFlashCommandLineArgs(const std::string& args); |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 friend struct DefaultSingletonTraits<ProxyModule>; | 32 friend struct base::DefaultSingletonTraits<ProxyModule>; |
| 31 | 33 |
| 32 std::string flash_command_line_args_; | 34 std::string flash_command_line_args_; |
| 33 | 35 |
| 34 ProxyModule(); | 36 ProxyModule(); |
| 35 ~ProxyModule(); | 37 ~ProxyModule(); |
| 36 | 38 |
| 37 DISALLOW_COPY_AND_ASSIGN(ProxyModule); | 39 DISALLOW_COPY_AND_ASSIGN(ProxyModule); |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 } // namespace proxy | 42 } // namespace proxy |
| 41 } // namespace ppapi | 43 } // namespace ppapi |
| 42 | 44 |
| 43 #endif // PPAPI_PROXY_PROXY_MODULE_H_ | 45 #endif // PPAPI_PROXY_PROXY_MODULE_H_ |
| OLD | NEW |