OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/process_singleton.h" | 5 #include "chrome/browser/process_singleton.h" |
6 | 6 |
7 // Look for a Chrome instance that uses the same profile directory. | 7 // Look for a Chrome instance that uses the same profile directory. |
8 ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) | 8 ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) |
9 : window_(NULL), locked_(false), foreground_window_(NULL) { | 9 : |
| 10 #if defined(OS_WIN) |
| 11 window_(NULL), |
| 12 #endif |
| 13 locked_(false), foreground_window_(NULL) { |
10 } | 14 } |
11 | 15 |
12 ProcessSingleton::~ProcessSingleton() { | 16 ProcessSingleton::~ProcessSingleton() { |
13 } | 17 } |
14 | 18 |
15 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() { | 19 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() { |
16 // TODO(beng): | 20 // TODO(beng): |
17 NOTIMPLEMENTED(); | 21 NOTIMPLEMENTED(); |
18 return PROCESS_NONE; | 22 return PROCESS_NONE; |
19 } | 23 } |
20 | 24 |
21 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() { | 25 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() { |
22 // TODO(beng): | 26 // TODO(beng): |
23 NOTIMPLEMENTED(); | 27 NOTIMPLEMENTED(); |
24 return PROCESS_NONE; | 28 return PROCESS_NONE; |
25 } | 29 } |
26 | 30 |
27 bool ProcessSingleton::Create() { | 31 bool ProcessSingleton::Create() { |
28 // TODO(beng): | 32 // TODO(beng): |
29 NOTIMPLEMENTED(); | 33 NOTIMPLEMENTED(); |
30 return true; | 34 return true; |
31 } | 35 } |
32 | 36 |
33 void ProcessSingleton::Cleanup() { | 37 void ProcessSingleton::Cleanup() { |
34 // TODO(beng): | 38 // TODO(beng): |
35 NOTIMPLEMENTED(); | 39 NOTIMPLEMENTED(); |
36 } | 40 } |
OLD | NEW |