Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
| 16 #if defined(USE_X11) | 16 #if defined(USE_X11) |
| 17 #include "base/file_path.h" | 17 #include "base/file_path.h" |
| 18 #endif | 18 #endif |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/non_thread_safe.h" | 20 #include "base/non_thread_safe.h" |
| 21 #include "base/ref_counted.h" | 21 #include "base/ref_counted.h" |
| 22 #include "gfx/native_widget_types.h" | 22 #include "gfx/native_widget_types.h" |
| 23 #if defined(OS_LINUX) | |
|
mattm
2010/08/24 02:54:12
looks like this file was recently changed to use d
| |
| 24 #include "base/scoped_temp_dir.h" | |
| 25 #endif | |
| 23 | 26 |
| 24 class CommandLine; | 27 class CommandLine; |
| 25 class FilePath; | 28 class FilePath; |
| 26 | 29 |
| 27 // ProcessSingleton ---------------------------------------------------------- | 30 // ProcessSingleton ---------------------------------------------------------- |
| 28 // | 31 // |
| 29 // This class allows different browser processes to communicate with | 32 // This class allows different browser processes to communicate with |
| 30 // each other. It is named according to the user data directory, so | 33 // each other. It is named according to the user data directory, so |
| 31 // we can be sure that no more than one copy of the application can be | 34 // we can be sure that no more than one copy of the application can be |
| 32 // running at once with a given data directory. | 35 // running at once with a given data directory. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 | 135 |
| 133 HWND remote_window_; // The HWND_MESSAGE of another browser. | 136 HWND remote_window_; // The HWND_MESSAGE of another browser. |
| 134 HWND window_; // The HWND_MESSAGE window. | 137 HWND window_; // The HWND_MESSAGE window. |
| 135 #elif defined(USE_X11) | 138 #elif defined(USE_X11) |
| 136 // Path in file system to the socket. | 139 // Path in file system to the socket. |
| 137 FilePath socket_path_; | 140 FilePath socket_path_; |
| 138 | 141 |
| 139 // Path in file system to the lock. | 142 // Path in file system to the lock. |
| 140 FilePath lock_path_; | 143 FilePath lock_path_; |
| 141 | 144 |
| 145 // Path in file system to the cookie file. | |
| 146 FilePath cookie_path_; | |
| 147 | |
| 148 // Temporary directory to hold the socket. | |
| 149 ScopedTempDir socket_dir_; | |
| 150 | |
| 142 // Helper class for linux specific messages. LinuxWatcher is ref counted | 151 // Helper class for linux specific messages. LinuxWatcher is ref counted |
| 143 // because it posts messages between threads. | 152 // because it posts messages between threads. |
| 144 class LinuxWatcher; | 153 class LinuxWatcher; |
| 145 scoped_refptr<LinuxWatcher> watcher_; | 154 scoped_refptr<LinuxWatcher> watcher_; |
| 146 #endif | 155 #endif |
| 147 | 156 |
| 148 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); | 157 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); |
| 149 }; | 158 }; |
| 150 | 159 |
| 151 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ | 160 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ |
| OLD | NEW |