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

Side by Side Diff: chrome/service/service_process.h

Issue 3384001: The LSID for Cloud Print can now be supplied on the command line even if Clou... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
« no previous file with comments | « chrome/service/service_main.cc ('k') | chrome/service/service_process.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_SERVICE_SERVICE_PROCESS_H_ 5 #ifndef CHROME_SERVICE_SERVICE_PROCESS_H_
6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 class NetworkChangeNotifier; 21 class NetworkChangeNotifier;
22 } 22 }
23 23
24 namespace remoting { 24 namespace remoting {
25 class ChromotingHost; 25 class ChromotingHost;
26 class ChromotingHostContext; 26 class ChromotingHostContext;
27 class HostKeyPair; 27 class HostKeyPair;
28 class JsonHostConfig; 28 class JsonHostConfig;
29 } 29 }
30 30
31 class CommandLine;
32
31 // The ServiceProcess does not inherit from ChildProcess because this 33 // The ServiceProcess does not inherit from ChildProcess because this
32 // process can live independently of the browser process. 34 // process can live independently of the browser process.
33 class ServiceProcess : public RemotingDirectoryService::Client, 35 class ServiceProcess : public RemotingDirectoryService::Client,
34 public CloudPrintProxy::Client { 36 public CloudPrintProxy::Client {
35 public: 37 public:
36 ServiceProcess(); 38 ServiceProcess();
37 ~ServiceProcess(); 39 ~ServiceProcess();
38 40
39 // Initialize the ServiceProcess with the message loop that it should run on. 41 // Initialize the ServiceProcess with the message loop that it should run on.
40 bool Initialize(MessageLoop* message_loop); 42 bool Initialize(MessageLoop* message_loop, const CommandLine& command_line);
41 bool Teardown(); 43 bool Teardown();
42 // TODO(sanjeevr): Change various parts of the code such as 44 // TODO(sanjeevr): Change various parts of the code such as
43 // net::ProxyService::CreateSystemProxyConfigService to take in 45 // net::ProxyService::CreateSystemProxyConfigService to take in
44 // MessageLoopProxy* instead of MessageLoop*. When we have done that, we can 46 // MessageLoopProxy* instead of MessageLoop*. When we have done that, we can
45 // remove the io_thread() and file_thread() accessors and replace them with 47 // remove the io_thread() and file_thread() accessors and replace them with
46 // io_message_loop_proxy() and file_message_loop_proxy() respectively. 48 // io_message_loop_proxy() and file_message_loop_proxy() respectively.
47 49
48 // Returns the thread that we perform I/O coordination on (network requests, 50 // Returns the thread that we perform I/O coordination on (network requests,
49 // communication with renderers, etc. 51 // communication with renderers, etc.
50 // NOTE: You should ONLY use this to pass to IPC or other objects which must 52 // NOTE: You should ONLY use this to pass to IPC or other objects which must
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 164
163 // Count of currently enabled services in this process. 165 // Count of currently enabled services in this process.
164 int enabled_services_; 166 int enabled_services_;
165 167
166 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); 168 DISALLOW_COPY_AND_ASSIGN(ServiceProcess);
167 }; 169 };
168 170
169 extern ServiceProcess* g_service_process; 171 extern ServiceProcess* g_service_process;
170 172
171 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ 173 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/service/service_main.cc ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698