Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: ppapi/proxy/proxy_module.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 11
12 template<typename T> struct DefaultSingletonTraits; 12 template<typename T> struct DefaultSingletonTraits;
13 13
14 namespace pp { 14 namespace pp {
15 namespace proxy { 15 namespace proxy {
16 16
17 class PluginDispatcher; 17 class PluginDispatcher;
18 class PluginResource;
19 18
20 class ProxyModule { 19 class ProxyModule {
21 public: 20 public:
22 // The global singleton getter. 21 // The global singleton getter.
23 static ProxyModule* GetInstance(); 22 static ProxyModule* GetInstance();
24 23
25 // TODO(viettrungluu): Generalize this for use with other plugins if it proves 24 // 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 25 // necessary. (Currently, we can't do this easily, since we can't tell from
27 // |PpapiPluginMain()| which plugin will be loaded.) 26 // |PpapiPluginMain()| which plugin will be loaded.)
28 const std::string& GetFlashCommandLineArgs(); 27 const std::string& GetFlashCommandLineArgs();
29 void SetFlashCommandLineArgs(const std::string& args); 28 void SetFlashCommandLineArgs(const std::string& args);
30 29
31 private: 30 private:
32 friend struct DefaultSingletonTraits<ProxyModule>; 31 friend struct DefaultSingletonTraits<ProxyModule>;
33 32
34 std::string flash_command_line_args_; 33 std::string flash_command_line_args_;
35 34
36 ProxyModule(); 35 ProxyModule();
37 ~ProxyModule(); 36 ~ProxyModule();
38 37
39 DISALLOW_COPY_AND_ASSIGN(ProxyModule); 38 DISALLOW_COPY_AND_ASSIGN(ProxyModule);
40 }; 39 };
41 40
42 } // namespace proxy 41 } // namespace proxy
43 } // namespace pp 42 } // namespace pp
44 43
45 #endif // PPAPI_PROXY_PROXY_MODULE_H_ 44 #endif // PPAPI_PROXY_PROXY_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698