summaryrefslogtreecommitdiffstats
path: root/chrome/common/service_process_util.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 19:48:58 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-05 19:48:58 +0000
commitde2658d5131e55239517f66c9ee19e3153941599 (patch)
tree7a262c083c035746b2916c662762e3b2d16fb4f8 /chrome/common/service_process_util.h
parented27fa208601080479f3ef4e85d48c80ec778f97 (diff)
downloadchromium_src-de2658d5131e55239517f66c9ee19e3153941599.zip
chromium_src-de2658d5131e55239517f66c9ee19e3153941599.tar.gz
chromium_src-de2658d5131e55239517f66c9ee19e3153941599.tar.bz2
Removed the ServiceProcessType enum because a single service process should host all types of services. Also implemeneted a rudimentary singleton mechanism for the service process on Windows.
BUG=None TEST=Test cloud print proxy and remoting UI. Review URL: http://codereview.chromium.org/3521012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/service_process_util.h')
-rw-r--r--chrome/common/service_process_util.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 37ea33c..5f54f75 100644
--- a/chrome/common/service_process_util.h
+++ b/chrome/common/service_process_util.h
@@ -7,8 +7,6 @@
#include <string>
-#include "chrome/common/service_process_type.h"
-
class Profile;
// Return the IPC channel to connect to the service process.
@@ -19,14 +17,20 @@ std::string GetServiceProcessChannelName();
// The following methods are used as a mechanism to signal a service process
// is running properly and all initialized.
//
+
+// Tries to become the sole service process for the current user data dir.
+// Returns false is another service process is already running.
+bool TakeServiceProcessSingletonLock();
+
// Signal that the service process is running.
// This method is called when the service process is running and initialized.
-void SignalServiceProcessRunning(ServiceProcessType type);
+void SignalServiceProcessRunning();
// Signal that the service process is stopped.
-void SignalServiceProcessStopped(ServiceProcessType type);
+void SignalServiceProcessStopped();
-// This method checks that if the service process is running.
-bool CheckServiceProcessRunning(ServiceProcessType type);
+// This method checks that if the service process is running (ready to receive
+// IPC commands).
+bool CheckServiceProcessRunning();
#endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_