| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ | 5 #ifndef CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ |
| 6 #define CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ | 6 #define CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 private: | 157 private: |
| 158 friend class base::RefCountedThreadSafe<ServiceProcessControl::Launcher>; | 158 friend class base::RefCountedThreadSafe<ServiceProcessControl::Launcher>; |
| 159 virtual ~Launcher(); | 159 virtual ~Launcher(); |
| 160 | 160 |
| 161 #if !defined(OS_MACOSX) | 161 #if !defined(OS_MACOSX) |
| 162 void DoDetectLaunched(); | 162 void DoDetectLaunched(); |
| 163 #endif // !OS_MACOSX | 163 #endif // !OS_MACOSX |
| 164 | 164 |
| 165 void DoRun(); | 165 void DoRun(); |
| 166 void Notify(); | 166 void Notify(); |
| 167 void CloseProcessHandle(); | 167 ServiceProcessControl* process_control_; |
| 168 ServiceProcessControl* process_; | |
| 169 scoped_ptr<base::CommandLine> cmd_line_; | 168 scoped_ptr<base::CommandLine> cmd_line_; |
| 170 base::Closure notify_task_; | 169 base::Closure notify_task_; |
| 171 bool launched_; | 170 bool launched_; |
| 172 uint32 retry_count_; | 171 uint32 retry_count_; |
| 173 base::ProcessHandle process_handle_; | 172 base::Process process_; |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 friend class MockServiceProcessControl; | 175 friend class MockServiceProcessControl; |
| 177 friend class CloudPrintProxyPolicyStartupTest; | 176 friend class CloudPrintProxyPolicyStartupTest; |
| 178 | 177 |
| 179 ServiceProcessControl(); | 178 ServiceProcessControl(); |
| 180 ~ServiceProcessControl() override; | 179 ~ServiceProcessControl() override; |
| 181 | 180 |
| 182 friend struct DefaultSingletonTraits<ServiceProcessControl>; | 181 friend struct DefaultSingletonTraits<ServiceProcessControl>; |
| 183 | 182 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // the service process. | 228 // the service process. |
| 230 base::Closure histograms_callback_; | 229 base::Closure histograms_callback_; |
| 231 | 230 |
| 232 content::NotificationRegistrar registrar_; | 231 content::NotificationRegistrar registrar_; |
| 233 | 232 |
| 234 // Callback that gets invoked if service didn't reply in time. | 233 // Callback that gets invoked if service didn't reply in time. |
| 235 base::CancelableClosure histograms_timeout_callback_; | 234 base::CancelableClosure histograms_timeout_callback_; |
| 236 }; | 235 }; |
| 237 | 236 |
| 238 #endif // CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ | 237 #endif // CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ |
| OLD | NEW |