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

Unified Diff: chrome/common/service_process_util.h

Issue 6660001: Getting service process on Mac to handle having things moved/changed underneath it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move over to FilePathWatcher Created 9 years, 9 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
Index: chrome/common/service_process_util.h
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 5db5225f74139dbe8b44cc7ed7e0ea6efd784063..3906601d2340b7cde93b3f3349817ce10e934607 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_

Powered by Google App Engine
This is Rietveld 408576698