| OLD | NEW |
| 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 <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/thread.h" | 14 #include "base/thread.h" |
| 15 #include "base/waitable_event.h" | 15 #include "base/waitable_event.h" |
| 16 #include "chrome/service/cloud_print/cloud_print_proxy.h" | 16 #include "chrome/service/cloud_print/cloud_print_proxy.h" |
| 17 #include "chrome/service/remoting/remoting_directory_service.h" | 17 #include "chrome/service/remoting/remoting_directory_service.h" |
| 18 | 18 |
| 19 class JsonPrefStore; | 19 class ServiceProcessPrefs; |
| 20 class ServiceIPCServer; | 20 class ServiceIPCServer; |
| 21 | 21 |
| 22 namespace net { | 22 namespace net { |
| 23 class NetworkChangeNotifier; | 23 class NetworkChangeNotifier; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace remoting { | 26 namespace remoting { |
| 27 class ChromotingHost; | 27 class ChromotingHost; |
| 28 class ChromotingHostContext; | 28 class ChromotingHostContext; |
| 29 class HostKeyPair; | 29 class HostKeyPair; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 // This method is called when chromoting is shutting down. This is virtual | 146 // This method is called when chromoting is shutting down. This is virtual |
| 147 // for used in the test. | 147 // for used in the test. |
| 148 virtual void OnChromotingHostShutdown(); | 148 virtual void OnChromotingHostShutdown(); |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 151 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
| 152 scoped_ptr<base::Thread> io_thread_; | 152 scoped_ptr<base::Thread> io_thread_; |
| 153 scoped_ptr<base::Thread> file_thread_; | 153 scoped_ptr<base::Thread> file_thread_; |
| 154 scoped_ptr<CloudPrintProxy> cloud_print_proxy_; | 154 scoped_ptr<CloudPrintProxy> cloud_print_proxy_; |
| 155 scoped_ptr<JsonPrefStore> service_prefs_; | 155 scoped_ptr<ServiceProcessPrefs> service_prefs_; |
| 156 scoped_ptr<ServiceIPCServer> ipc_server_; | 156 scoped_ptr<ServiceIPCServer> ipc_server_; |
| 157 | 157 |
| 158 #if defined(ENABLE_REMOTING) | 158 #if defined(ENABLE_REMOTING) |
| 159 scoped_refptr<remoting::JsonHostConfig> chromoting_config_; | 159 scoped_refptr<remoting::JsonHostConfig> chromoting_config_; |
| 160 scoped_ptr<remoting::ChromotingHostContext> chromoting_context_; | 160 scoped_ptr<remoting::ChromotingHostContext> chromoting_context_; |
| 161 scoped_refptr<remoting::ChromotingHost> chromoting_host_; | 161 scoped_refptr<remoting::ChromotingHost> chromoting_host_; |
| 162 scoped_ptr<RemotingDirectoryService> remoting_directory_; | 162 scoped_ptr<RemotingDirectoryService> remoting_directory_; |
| 163 | 163 |
| 164 // Temporary storage for remoting credentials. The content is cleared | 164 // Temporary storage for remoting credentials. The content is cleared |
| 165 // after it is saved. | 165 // after it is saved. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 179 | 179 |
| 180 // Speficies whether a product update is available. | 180 // Speficies whether a product update is available. |
| 181 bool update_available_; | 181 bool update_available_; |
| 182 | 182 |
| 183 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); | 183 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 extern ServiceProcess* g_service_process; | 186 extern ServiceProcess* g_service_process; |
| 187 | 187 |
| 188 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ | 188 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ |
| OLD | NEW |