Index: chrome/service/service_process.h |
diff --git a/chrome/service/service_process.h b/chrome/service/service_process.h |
index 19a2043cbb0f26e6c78118eef8675edf9e3bf3be..759a48ec603236a6f83f7768e445e0f13cdd7d7c 100644 |
--- a/chrome/service/service_process.h |
+++ b/chrome/service/service_process.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// 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. |
@@ -20,6 +20,7 @@ class ServiceProcessPrefs; |
class ServiceIPCServer; |
class CommandLine; |
class ServiceURLRequestContextGetter; |
+class ServiceProcessState; |
namespace net { |
class NetworkChangeNotifier; |
@@ -36,8 +37,10 @@ class ServiceProcess : public CloudPrintProxy::Client, |
~ServiceProcess(); |
// Initialize the ServiceProcess with the message loop that it should run on. |
+ // ServiceProcess takes ownership of |state|. |
bool Initialize(MessageLoopForUI* message_loop, |
- const CommandLine& command_line); |
+ const CommandLine& command_line, |
+ ServiceProcessState* state); |
bool Teardown(); |
// TODO(sanjeevr): Change various parts of the code such as |
// net::ProxyService::CreateSystemProxyConfigService to take in |
@@ -120,6 +123,7 @@ class ServiceProcess : public CloudPrintProxy::Client, |
scoped_ptr<CloudPrintProxy> cloud_print_proxy_; |
scoped_ptr<ServiceProcessPrefs> service_prefs_; |
scoped_ptr<ServiceIPCServer> ipc_server_; |
+ scoped_ptr<ServiceProcessState> service_process_state_; |
// An event that will be signalled when we shutdown. |
base::WaitableEvent shutdown_event_; |