OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CHROME_PROCESS_SINGLETON_H_ | 5 #ifndef CHROME_BROWSER_CHROME_PROCESS_SINGLETON_H_ |
6 #define CHROME_BROWSER_CHROME_PROCESS_SINGLETON_H_ | 6 #define CHROME_BROWSER_CHROME_PROCESS_SINGLETON_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/macros.h" |
10 #include "chrome/browser/process_singleton.h" | 10 #include "chrome/browser/process_singleton.h" |
11 #include "chrome/browser/process_singleton_modal_dialog_lock.h" | 11 #include "chrome/browser/process_singleton_modal_dialog_lock.h" |
12 #include "chrome/browser/process_singleton_startup_lock.h" | 12 #include "chrome/browser/process_singleton_startup_lock.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 // Composes a basic ProcessSingleton with ProcessSingletonStartupLock and | 15 // Composes a basic ProcessSingleton with ProcessSingletonStartupLock and |
16 // ProcessSingletonModalDialogLock. | 16 // ProcessSingletonModalDialogLock. |
17 // | 17 // |
18 // Notifications from ProcessSingleton will be discarded if a modal dialog is | 18 // Notifications from ProcessSingleton will be discarded if a modal dialog is |
19 // active. Otherwise, until |Unlock()| is called, they will be queued up. | 19 // active. Otherwise, until |Unlock()| is called, they will be queued up. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 ProcessSingletonStartupLock startup_lock_; | 69 ProcessSingletonStartupLock startup_lock_; |
70 ProcessSingletonModalDialogLock modal_dialog_lock_; | 70 ProcessSingletonModalDialogLock modal_dialog_lock_; |
71 | 71 |
72 // The basic ProcessSingleton | 72 // The basic ProcessSingleton |
73 ProcessSingleton process_singleton_; | 73 ProcessSingleton process_singleton_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(ChromeProcessSingleton); | 75 DISALLOW_COPY_AND_ASSIGN(ChromeProcessSingleton); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_CHROME_PROCESS_SINGLETON_H_ | 78 #endif // CHROME_BROWSER_CHROME_PROCESS_SINGLETON_H_ |
OLD | NEW |