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 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ | 5 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ |
6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ | 6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 FilePath lock_path_; | 159 FilePath lock_path_; |
160 | 160 |
161 // Path in file system to the cookie file. | 161 // Path in file system to the cookie file. |
162 FilePath cookie_path_; | 162 FilePath cookie_path_; |
163 | 163 |
164 // Temporary directory to hold the socket. | 164 // Temporary directory to hold the socket. |
165 ScopedTempDir socket_dir_; | 165 ScopedTempDir socket_dir_; |
166 | 166 |
167 // Helper class for linux specific messages. LinuxWatcher is ref counted | 167 // Helper class for linux specific messages. LinuxWatcher is ref counted |
168 // because it posts messages between threads. | 168 // because it posts messages between threads. |
169 #if !defined(USE_AURA) | |
169 class LinuxWatcher; | 170 class LinuxWatcher; |
oshima
2011/09/19 15:52:39
Why this has to be removed? TODO would be nice.
Emmanuel Saint-loubert-Bié
2011/09/19 20:15:36
Done.
| |
170 scoped_refptr<LinuxWatcher> watcher_; | 171 scoped_refptr<LinuxWatcher> watcher_; |
172 #endif | |
171 #elif defined(OS_MACOSX) | 173 #elif defined(OS_MACOSX) |
172 // Path in file system to the lock. | 174 // Path in file system to the lock. |
173 FilePath lock_path_; | 175 FilePath lock_path_; |
174 | 176 |
175 // File descriptor associated with the lockfile, valid between | 177 // File descriptor associated with the lockfile, valid between |
176 // |Create()| and |Cleanup()|. Two instances cannot have a lock on | 178 // |Create()| and |Cleanup()|. Two instances cannot have a lock on |
177 // the same file at the same time. | 179 // the same file at the same time. |
178 int lock_fd_; | 180 int lock_fd_; |
179 #endif | 181 #endif |
180 | 182 |
181 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); | 183 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); |
182 }; | 184 }; |
183 | 185 |
184 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ | 186 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ |
OLD | NEW |