Removed 'anonymous' from namespace, added whitespace in thread_restrictions.cc
[chromium-blink-merge.git] / ppapi / proxy / proxy_module.h
blob5d3a12525b79bfdfd977a82de9f95d3f39f443e1
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.
5 #ifndef PPAPI_PROXY_PROXY_MODULE_H_
6 #define PPAPI_PROXY_PROXY_MODULE_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "ppapi/proxy/ppapi_proxy_export.h"
13 namespace base {
14 template<typename T> struct DefaultSingletonTraits;
17 namespace ppapi {
18 namespace proxy {
20 class PPAPI_PROXY_EXPORT ProxyModule {
21 public:
22 // The global singleton getter.
23 static ProxyModule* GetInstance();
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);
31 private:
32 friend struct base::DefaultSingletonTraits<ProxyModule>;
34 std::string flash_command_line_args_;
36 ProxyModule();
37 ~ProxyModule();
39 DISALLOW_COPY_AND_ASSIGN(ProxyModule);
42 } // namespace proxy
43 } // namespace ppapi
45 #endif // PPAPI_PROXY_PROXY_MODULE_H_