| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // content::BrowserMainParts overrides. | 66 // content::BrowserMainParts overrides. |
| 67 // These are called in-order by content::BrowserMainLoop. | 67 // These are called in-order by content::BrowserMainLoop. |
| 68 // Each stage calls the same stages in any ChromeBrowserMainExtraParts added | 68 // Each stage calls the same stages in any ChromeBrowserMainExtraParts added |
| 69 // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. | 69 // with AddParts() from ChromeContentBrowserClient::CreateBrowserMainParts. |
| 70 void PreEarlyInitialization() override; | 70 void PreEarlyInitialization() override; |
| 71 void PostEarlyInitialization() override; | 71 void PostEarlyInitialization() override; |
| 72 void ToolkitInitialized() override; | 72 void ToolkitInitialized() override; |
| 73 void PreMainMessageLoopStart() override; | 73 void PreMainMessageLoopStart() override; |
| 74 void PostMainMessageLoopStart() override; | 74 void PostMainMessageLoopStart() override; |
| 75 int PreCreateThreads() override; | 75 int PreCreateThreads() override; |
| 76 void PreCreateThreadsEnd() override; |
| 76 void PreMainMessageLoopRun() override; | 77 void PreMainMessageLoopRun() override; |
| 77 bool MainMessageLoopRun(int* result_code) override; | 78 bool MainMessageLoopRun(int* result_code) override; |
| 78 void PostMainMessageLoopRun() override; | 79 void PostMainMessageLoopRun() override; |
| 79 void PostDestroyThreads() override; | 80 void PostDestroyThreads() override; |
| 80 | 81 |
| 81 // Additional stages for ChromeBrowserMainExtraParts. These stages are called | 82 // Additional stages for ChromeBrowserMainExtraParts. These stages are called |
| 82 // in order from PreMainMessageLoopRun(). See implementation for details. | 83 // in order from PreMainMessageLoopRun(). See implementation for details. |
| 83 virtual void PreProfileInit(); | 84 virtual void PreProfileInit(); |
| 84 virtual void PostProfileInit(); | 85 virtual void PostProfileInit(); |
| 85 virtual void PreBrowserStart(); | 86 virtual void PreBrowserStart(); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 PrefService* local_state_; | 193 PrefService* local_state_; |
| 193 base::FilePath user_data_dir_; | 194 base::FilePath user_data_dir_; |
| 194 | 195 |
| 195 // Members needed across shutdown methods. | 196 // Members needed across shutdown methods. |
| 196 bool restart_last_session_; | 197 bool restart_last_session_; |
| 197 | 198 |
| 198 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 199 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 202 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
| OLD | NEW |