OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <windows.h> | 11 #include <windows.h> |
12 #endif | 12 #endif |
13 | 13 |
| 14 #include "app/gfx/native_widget_types.h" |
14 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
15 #include "base/file_path.h" | 16 #include "base/file_path.h" |
16 #include "base/gfx/native_widget_types.h" | |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/non_thread_safe.h" | 18 #include "base/non_thread_safe.h" |
19 #include "base/ref_counted.h" | 19 #include "base/ref_counted.h" |
20 | 20 |
21 // ProcessSingleton ---------------------------------------------------------- | 21 // ProcessSingleton ---------------------------------------------------------- |
22 // | 22 // |
23 // This class allows different browser processes to communicate with | 23 // This class allows different browser processes to communicate with |
24 // each other. It is named according to the user data directory, so | 24 // each other. It is named according to the user data directory, so |
25 // we can be sure that no more than one copy of the application can be | 25 // we can be sure that no more than one copy of the application can be |
26 // running at once with a given data directory. | 26 // running at once with a given data directory. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Helper class for linux specific messages. LinuxWatcher is ref counted | 123 // Helper class for linux specific messages. LinuxWatcher is ref counted |
124 // because it posts messages between threads. | 124 // because it posts messages between threads. |
125 class LinuxWatcher; | 125 class LinuxWatcher; |
126 scoped_refptr<LinuxWatcher> watcher_; | 126 scoped_refptr<LinuxWatcher> watcher_; |
127 #endif | 127 #endif |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); | 129 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ | 132 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ |
OLD | NEW |