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

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

Issue 8527020: Cleanup: Remove unneeded forward declarations in ppapi. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « ppapi/proxy/proxy_channel.h ('k') | ppapi/shared_impl/url_request_info_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ppapi/proxy/ppapi_proxy_export.h" 11 #include "ppapi/proxy/ppapi_proxy_export.h"
12 12
13 template<typename T> struct DefaultSingletonTraits; 13 template<typename T> struct DefaultSingletonTraits;
14 14
15 namespace ppapi { 15 namespace ppapi {
16 namespace proxy { 16 namespace proxy {
17 17
18 class PluginDispatcher;
19
20 class PPAPI_PROXY_EXPORT ProxyModule { 18 class PPAPI_PROXY_EXPORT ProxyModule {
21 public: 19 public:
22 // The global singleton getter. 20 // The global singleton getter.
23 static ProxyModule* GetInstance(); 21 static ProxyModule* GetInstance();
24 22
25 // TODO(viettrungluu): Generalize this for use with other plugins if it proves 23 // 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 24 // necessary. (Currently, we can't do this easily, since we can't tell from
27 // |PpapiPluginMain()| which plugin will be loaded.) 25 // |PpapiPluginMain()| which plugin will be loaded.)
28 const std::string& GetFlashCommandLineArgs(); 26 const std::string& GetFlashCommandLineArgs();
29 void SetFlashCommandLineArgs(const std::string& args); 27 void SetFlashCommandLineArgs(const std::string& args);
30 28
31 private: 29 private:
32 friend struct DefaultSingletonTraits<ProxyModule>; 30 friend struct DefaultSingletonTraits<ProxyModule>;
33 31
34 std::string flash_command_line_args_; 32 std::string flash_command_line_args_;
35 33
36 ProxyModule(); 34 ProxyModule();
37 ~ProxyModule(); 35 ~ProxyModule();
38 36
39 DISALLOW_COPY_AND_ASSIGN(ProxyModule); 37 DISALLOW_COPY_AND_ASSIGN(ProxyModule);
40 }; 38 };
41 39
42 } // namespace proxy 40 } // namespace proxy
43 } // namespace ppapi 41 } // namespace ppapi
44 42
45 #endif // PPAPI_PROXY_PROXY_MODULE_H_ 43 #endif // PPAPI_PROXY_PROXY_MODULE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/proxy_channel.h ('k') | ppapi/shared_impl/url_request_info_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698