| 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_BROWSER_SHUTDOWN_H__ | 5 #ifndef CHROME_BROWSER_BROWSER_SHUTDOWN_H__ |
| 6 #define CHROME_BROWSER_BROWSER_SHUTDOWN_H__ | 6 #define CHROME_BROWSER_BROWSER_SHUTDOWN_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class PrefService; | 9 class PrefService; |
| 10 | 10 |
| 11 namespace browser_shutdown { | 11 namespace browser_shutdown { |
| 12 | 12 |
| 13 // Should Shutdown() delete the ResourceBundle? This is normally true, but set | |
| 14 // to false for in process unit tests. | |
| 15 extern bool delete_resources_on_shutdown; | |
| 16 | |
| 17 enum ShutdownType { | 13 enum ShutdownType { |
| 18 // an uninitialized value | 14 // an uninitialized value |
| 19 NOT_VALID = 0, | 15 NOT_VALID = 0, |
| 20 // the last browser window was closed | 16 // the last browser window was closed |
| 21 WINDOW_CLOSE, | 17 WINDOW_CLOSE, |
| 22 // user clicked on the Exit menu item | 18 // user clicked on the Exit menu item |
| 23 BROWSER_EXIT, | 19 BROWSER_EXIT, |
| 24 // windows is logging off or shutting down | 20 // windows is logging off or shutting down |
| 25 END_SESSION | 21 END_SESSION |
| 26 }; | 22 }; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // explicitly close the browser windows, which can lead to conditions which | 72 // explicitly close the browser windows, which can lead to conditions which |
| 77 // would fail checks. | 73 // would fail checks. |
| 78 bool ShuttingDownWithoutClosingBrowsers(); | 74 bool ShuttingDownWithoutClosingBrowsers(); |
| 79 | 75 |
| 80 // Sets the ShuttingDownWithoutClosingBrowsers flag. | 76 // Sets the ShuttingDownWithoutClosingBrowsers flag. |
| 81 void SetShuttingDownWithoutClosingBrowsers(bool without_close); | 77 void SetShuttingDownWithoutClosingBrowsers(bool without_close); |
| 82 | 78 |
| 83 } // namespace browser_shutdown | 79 } // namespace browser_shutdown |
| 84 | 80 |
| 85 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ | 81 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ |
| OLD | NEW |