| 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 | 12 |
| 12 template<typename T> struct DefaultSingletonTraits; | 13 template<typename T> struct DefaultSingletonTraits; |
| 13 | 14 |
| 14 namespace ppapi { | 15 namespace ppapi { |
| 15 namespace proxy { | 16 namespace proxy { |
| 16 | 17 |
| 17 class PluginDispatcher; | 18 class PluginDispatcher; |
| 18 | 19 |
| 19 class ProxyModule { | 20 class PPAPI_PROXY_EXPORT ProxyModule { |
| 20 public: | 21 public: |
| 21 // The global singleton getter. | 22 // The global singleton getter. |
| 22 static ProxyModule* GetInstance(); | 23 static ProxyModule* GetInstance(); |
| 23 | 24 |
| 24 // 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 |
| 25 // 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 |
| 26 // |PpapiPluginMain()| which plugin will be loaded.) | 27 // |PpapiPluginMain()| which plugin will be loaded.) |
| 27 const std::string& GetFlashCommandLineArgs(); | 28 const std::string& GetFlashCommandLineArgs(); |
| 28 void SetFlashCommandLineArgs(const std::string& args); | 29 void SetFlashCommandLineArgs(const std::string& args); |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 friend struct DefaultSingletonTraits<ProxyModule>; | 32 friend struct DefaultSingletonTraits<ProxyModule>; |
| 32 | 33 |
| 33 std::string flash_command_line_args_; | 34 std::string flash_command_line_args_; |
| 34 | 35 |
| 35 ProxyModule(); | 36 ProxyModule(); |
| 36 ~ProxyModule(); | 37 ~ProxyModule(); |
| 37 | 38 |
| 38 DISALLOW_COPY_AND_ASSIGN(ProxyModule); | 39 DISALLOW_COPY_AND_ASSIGN(ProxyModule); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace proxy | 42 } // namespace proxy |
| 42 } // namespace ppapi | 43 } // namespace ppapi |
| 43 | 44 |
| 44 #endif // PPAPI_PROXY_PROXY_MODULE_H_ | 45 #endif // PPAPI_PROXY_PROXY_MODULE_H_ |
| OLD | NEW |