OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_LIFETIME_BROWSER_CLOSE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_LIFETIME_BROWSER_CLOSE_MANAGER_H_ |
6 #define CHROME_BROWSER_LIFETIME_BROWSER_CLOSE_MANAGER_H_ | 6 #define CHROME_BROWSER_LIFETIME_BROWSER_CLOSE_MANAGER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 | 11 |
11 class Browser; | 12 class Browser; |
12 | 13 |
13 // Manages confirming that browser windows are closeable and closing them at | 14 // Manages confirming that browser windows are closeable and closing them at |
14 // shutdown. | 15 // shutdown. |
15 class BrowserCloseManager : public base::RefCounted<BrowserCloseManager> { | 16 class BrowserCloseManager : public base::RefCounted<BrowserCloseManager> { |
16 public: | 17 public: |
17 BrowserCloseManager(); | 18 BrowserCloseManager(); |
18 | 19 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void OnReportDownloadsCancellable(bool proceed); | 55 void OnReportDownloadsCancellable(bool proceed); |
55 | 56 |
56 // The browser for which we are waiting for a callback to | 57 // The browser for which we are waiting for a callback to |
57 // OnBrowserReportCloseable. | 58 // OnBrowserReportCloseable. |
58 Browser* current_browser_; | 59 Browser* current_browser_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(BrowserCloseManager); | 61 DISALLOW_COPY_AND_ASSIGN(BrowserCloseManager); |
61 }; | 62 }; |
62 | 63 |
63 #endif // CHROME_BROWSER_LIFETIME_BROWSER_CLOSE_MANAGER_H_ | 64 #endif // CHROME_BROWSER_LIFETIME_BROWSER_CLOSE_MANAGER_H_ |
OLD | NEW |