Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9071)

Unified Diff: chrome/common/service_process_util.h

Issue 6825063: Patch for bug 74983 (among others) to be applied to M11 696 branch. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/696/src
Patch Set: intentionally disabled mac tests. tested by hand. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/launchd_mac.mm ('k') | chrome/common/service_process_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util.h
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 1ec9d653226bf6634279e4c8563fd8bcef8a8706..44c6a69f1fc0b6234301389231fd947aedf902ec 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_
« no previous file with comments | « chrome/common/launchd_mac.mm ('k') | chrome/common/service_process_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698