| 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_COMMON_SERVICE_PROCESS_UTIL_H_ | 5 #ifndef CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
| 6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ | 6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/common/service_process_type.h" | 10 #include "chrome/common/service_process_type.h" |
| 11 | 11 |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 // Return the IPC channel to connect to the service process with |profile| | 14 // Return the IPC channel to connect to the service process. |
| 15 // and |type|. | |
| 16 // | 15 // |
| 17 // TODO(hclam): Need more information to come up with the channel name. | 16 // TODO(hclam): Need more information to come up with the channel name. |
| 18 std::string GetServiceProcessChannelName(ServiceProcessType type); | 17 std::string GetServiceProcessChannelName(); |
| 19 | 18 |
| 20 // The following methods are used as a mechanism to signal a service process | 19 // The following methods are used as a mechanism to signal a service process |
| 21 // is running properly and all initialized. | 20 // is running properly and all initialized. |
| 22 // | 21 // |
| 23 // Signal that the service process is running. | 22 // Signal that the service process is running. |
| 24 // This method is called when the service process is running and initialized. | 23 // This method is called when the service process is running and initialized. |
| 25 void SignalServiceProcessRunning(ServiceProcessType type); | 24 void SignalServiceProcessRunning(ServiceProcessType type); |
| 26 | 25 |
| 27 // Signal that the service process is stopped. | 26 // Signal that the service process is stopped. |
| 28 void SignalServiceProcessStopped(ServiceProcessType type); | 27 void SignalServiceProcessStopped(ServiceProcessType type); |
| 29 | 28 |
| 30 // This method checks that if the service process is running. | 29 // This method checks that if the service process is running. |
| 31 bool CheckServiceProcessRunning(ServiceProcessType type); | 30 bool CheckServiceProcessRunning(ServiceProcessType type); |
| 32 | 31 |
| 33 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ | 32 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ |
| OLD | NEW |