[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef PPAPI_PROXY_PROXY_MODULE_H_ | ||||
6 | #define PPAPI_PROXY_PROXY_MODULE_H_ | ||||
7 | |||||
8 | #include <string> | ||||
9 | |||||
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 10 | #include "base/macros.h" |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 11 | #include "ppapi/proxy/ppapi_proxy_export.h" |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 12 | |
olli.raula | 36aa8be | 2015-09-10 11:14:22 | [diff] [blame] | 13 | namespace base { |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 14 | template<typename T> struct DefaultSingletonTraits; |
olli.raula | 36aa8be | 2015-09-10 11:14:22 | [diff] [blame] | 15 | } |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 16 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 17 | namespace ppapi { |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 18 | namespace proxy { |
19 | |||||
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 20 | class PPAPI_PROXY_EXPORT ProxyModule { |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 21 | public: |
22 | // The global singleton getter. | ||||
23 | static ProxyModule* GetInstance(); | ||||
24 | |||||
25 | // TODO(viettrungluu): Generalize this for use with other plugins if it proves | ||||
26 | // necessary. (Currently, we can't do this easily, since we can't tell from | ||||
27 | // |PpapiPluginMain()| which plugin will be loaded.) | ||||
28 | const std::string& GetFlashCommandLineArgs(); | ||||
29 | void SetFlashCommandLineArgs(const std::string& args); | ||||
30 | |||||
31 | private: | ||||
olli.raula | 36aa8be | 2015-09-10 11:14:22 | [diff] [blame] | 32 | friend struct base::DefaultSingletonTraits<ProxyModule>; |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 33 | |
34 | std::string flash_command_line_args_; | ||||
35 | |||||
36 | ProxyModule(); | ||||
37 | ~ProxyModule(); | ||||
38 | |||||
39 | DISALLOW_COPY_AND_ASSIGN(ProxyModule); | ||||
40 | }; | ||||
41 | |||||
42 | } // namespace proxy | ||||
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 43 | } // namespace ppapi |
[email protected] | 747ab0d4 | 2011-05-03 19:13:43 | [diff] [blame] | 44 | |
45 | #endif // PPAPI_PROXY_PROXY_MODULE_H_ |