| 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 CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // content::BrowserMainParts overrides. | 63 // content::BrowserMainParts overrides. |
| 64 // These are called in-order by content::BrowserMainLoop. | 64 // These are called in-order by content::BrowserMainLoop. |
| 65 // Each stage calls the same stages in any ChromeBrowserMainExtraParts added | 65 // Each stage calls the same stages in any ChromeBrowserMainExtraParts added |
| 66 // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. | 66 // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. |
| 67 void PreEarlyInitialization() override; | 67 void PreEarlyInitialization() override; |
| 68 void PostEarlyInitialization() override; | 68 void PostEarlyInitialization() override; |
| 69 void ToolkitInitialized() override; | 69 void ToolkitInitialized() override; |
| 70 void PreMainMessageLoopStart() override; | 70 void PreMainMessageLoopStart() override; |
| 71 void PostMainMessageLoopStart() override; | 71 void PostMainMessageLoopStart() override; |
| 72 int PreCreateThreads() override; | 72 int PreCreateThreads() override; |
| 73 void MojoShellConnectionStarted( | 73 void ServiceManagerConnectionStarted( |
| 74 content::MojoShellConnection* connection) override; | 74 content::ServiceManagerConnection* connection) override; |
| 75 void PreMainMessageLoopRun() override; | 75 void PreMainMessageLoopRun() override; |
| 76 bool MainMessageLoopRun(int* result_code) override; | 76 bool MainMessageLoopRun(int* result_code) override; |
| 77 void PostMainMessageLoopRun() override; | 77 void PostMainMessageLoopRun() override; |
| 78 void PostDestroyThreads() override; | 78 void PostDestroyThreads() override; |
| 79 | 79 |
| 80 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 80 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
| 81 // in order from PreMainMessageLoopRun(). See implementation for details. | 81 // in order from PreMainMessageLoopRun(). See implementation for details. |
| 82 virtual void PreProfileInit(); | 82 virtual void PreProfileInit(); |
| 83 virtual void PostProfileInit(); | 83 virtual void PostProfileInit(); |
| 84 virtual void PreBrowserStart(); | 84 virtual void PreBrowserStart(); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 // Members initialized in PreMainMessageLoopRun, needed in | 196 // Members initialized in PreMainMessageLoopRun, needed in |
| 197 // PreMainMessageLoopRunThreadsCreated. | 197 // PreMainMessageLoopRunThreadsCreated. |
| 198 PrefService* local_state_; | 198 PrefService* local_state_; |
| 199 base::FilePath user_data_dir_; | 199 base::FilePath user_data_dir_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 201 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 204 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |