blob: 8bddffa616183876c3c6e96d63215a5bebe0817e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PPAPI_PROXY_PROXY_MODULE_H_
#define PPAPI_PROXY_PROXY_MODULE_H_
#include <string>
#include "base/basictypes.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
template<typename T> struct DefaultSingletonTraits;
namespace ppapi {
namespace proxy {
class PluginDispatcher;
class PPAPI_PROXY_EXPORT ProxyModule {
public:
// The global singleton getter.
static ProxyModule* GetInstance();
// TODO(viettrungluu): Generalize this for use with other plugins if it proves
// necessary. (Currently, we can't do this easily, since we can't tell from
// |PpapiPluginMain()| which plugin will be loaded.)
const std::string& GetFlashCommandLineArgs();
void SetFlashCommandLineArgs(const std::string& args);
private:
friend struct DefaultSingletonTraits<ProxyModule>;
std::string flash_command_line_args_;
ProxyModule();
~ProxyModule();
DISALLOW_COPY_AND_ASSIGN(ProxyModule);
};
} // namespace proxy
} // namespace ppapi
#endif // PPAPI_PROXY_PROXY_MODULE_H_
|