| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 void EarlyInitialization(); | 113 void EarlyInitialization(); |
| 114 | 114 |
| 115 // Initializes the toolkit. Returns whether the toolkit initialization was | 115 // Initializes the toolkit. Returns whether the toolkit initialization was |
| 116 // successful or not. | 116 // successful or not. |
| 117 bool InitializeToolkit(); | 117 bool InitializeToolkit(); |
| 118 | 118 |
| 119 void PreMainMessageLoopStart(); | 119 void PreMainMessageLoopStart(); |
| 120 void MainMessageLoopStart(); | 120 void MainMessageLoopStart(); |
| 121 void PostMainMessageLoopStart(); | 121 void PostMainMessageLoopStart(); |
| 122 void PreShutdown(); |
| 122 | 123 |
| 123 // Create and start running the tasks we need to complete startup. Note that | 124 // Create and start running the tasks we need to complete startup. Note that |
| 124 // this can be called more than once (currently only on Android) if we get a | 125 // this can be called more than once (currently only on Android) if we get a |
| 125 // request for synchronous startup while the tasks created by asynchronous | 126 // request for synchronous startup while the tasks created by asynchronous |
| 126 // startup are still running. | 127 // startup are still running. |
| 127 void CreateStartupTasks(); | 128 void CreateStartupTasks(); |
| 128 | 129 |
| 129 // Perform the default message loop run logic. | 130 // Perform the default message loop run logic. |
| 130 void RunMainMessageLoopParts(); | 131 void RunMainMessageLoopParts(); |
| 131 | 132 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 scoped_refptr<SaveFileManager> save_file_manager_; | 318 scoped_refptr<SaveFileManager> save_file_manager_; |
| 318 | 319 |
| 319 // DO NOT add members here. Add them to the right categories above. | 320 // DO NOT add members here. Add them to the right categories above. |
| 320 | 321 |
| 321 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 322 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 322 }; | 323 }; |
| 323 | 324 |
| 324 } // namespace content | 325 } // namespace content |
| 325 | 326 |
| 326 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 327 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |