summaryrefslogtreecommitdiffstats
path: root/chrome/common/service_process_util.h
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 05:19:29 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 05:19:29 +0000
commit4130d9e2ee756e06aae9861eb4658b0578ee67bd (patch)
tree18d47b0dac25e8bf76783ce524d37b21dc9bcbe1 /chrome/common/service_process_util.h
parent9b8dea2472f7df4036f07f370ab4321f24823c8c (diff)
downloadchromium_src-4130d9e2ee756e06aae9861eb4658b0578ee67bd.zip
chromium_src-4130d9e2ee756e06aae9861eb4658b0578ee67bd.tar.gz
chromium_src-4130d9e2ee756e06aae9861eb4658b0578ee67bd.tar.bz2
Getting service process on Mac to handle having things moved/changed underneath it.
BUG=74983 TEST=See http://code.google.com/p/chromium/issues/detail?id=74983#c16 Review URL: http://codereview.chromium.org/6660001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/service_process_util.h')
-rw-r--r--chrome/common/service_process_util.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 5db5225..3906601 100644
--- a/chrome/common/service_process_util.h
+++ b/chrome/common/service_process_util.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,8 +20,6 @@ namespace base {
class MessageLoopProxy;
}
-template <typename T> struct DefaultSingletonTraits;
-
// Return the IPC channel to connect to the service process.
IPC::ChannelHandle GetServiceProcessChannel();
@@ -60,8 +58,8 @@ bool ForceServiceProcessShutdown(const std::string& version,
// and this class are shared.
class ServiceProcessState {
public:
- // Returns the singleton instance.
- static ServiceProcessState* GetInstance();
+ ServiceProcessState();
+ ~ServiceProcessState();
// Tries to become the sole service process for the current user data dir.
// Returns false if another service process is already running.
@@ -89,8 +87,6 @@ class ServiceProcessState {
IPC::ChannelHandle GetServiceProcessChannel();
private:
- ServiceProcessState();
- ~ServiceProcessState();
#if !defined(OS_MACOSX)
// Create the shared memory data for the service process.
@@ -121,8 +117,6 @@ class ServiceProcessState {
StateData* state_;
scoped_ptr<base::SharedMemory> shared_mem_service_data_;
scoped_ptr<CommandLine> autorun_command_line_;
-
- friend struct DefaultSingletonTraits<ServiceProcessState>;
};
#endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_