blob: 21f53b175d9a4b61860a1f593c48a2580017259f [file] [log] [blame]
[email protected]747ab0d42011-05-03 19:13:431// 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
avie029c4132015-12-23 06:45:2210#include "base/macros.h"
[email protected]f0a04c42011-08-26 22:43:2011#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]747ab0d42011-05-03 19:13:4312
olli.raula36aa8be2015-09-10 11:14:2213namespace base {
[email protected]747ab0d42011-05-03 19:13:4314template<typename T> struct DefaultSingletonTraits;
olli.raula36aa8be2015-09-10 11:14:2215}
[email protected]747ab0d42011-05-03 19:13:4316
[email protected]4d2efd22011-08-18 21:58:0217namespace ppapi {
[email protected]747ab0d42011-05-03 19:13:4318namespace proxy {
19
[email protected]f0a04c42011-08-26 22:43:2020class PPAPI_PROXY_EXPORT ProxyModule {
[email protected]747ab0d42011-05-03 19:13:4321 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.raula36aa8be2015-09-10 11:14:2232 friend struct base::DefaultSingletonTraits<ProxyModule>;
[email protected]747ab0d42011-05-03 19:13:4333
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]4d2efd22011-08-18 21:58:0243} // namespace ppapi
[email protected]747ab0d42011-05-03 19:13:4344
45#endif // PPAPI_PROXY_PROXY_MODULE_H_