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_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ |
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 | 10 |
11 // Interface class for Parts owned by ChromeBrowserMainParts. | 11 // Interface class for Parts owned by ChromeBrowserMainParts. |
12 // The default implementation for all methods is empty. | 12 // The default implementation for all methods is empty. |
13 | 13 |
14 // Most of these map to content::BrowserMainParts methods. This interface is | 14 // Most of these map to content::BrowserMainParts methods. This interface is |
15 // separate to allow stages to be further subdivided for Chrome specific | 15 // separate to allow stages to be further subdivided for Chrome specific |
16 // initialization stages (e.g. browser process init, profile init). | 16 // initialization stages (e.g. browser process init, profile init). |
17 | 17 |
| 18 // While ChromeBrowserMainParts are platform-specific, |
| 19 // ChromeBrowserMainExtraParts are used to do further initialization for various |
| 20 // Chrome toolkits (e.g., GTK, VIEWS, ASH, AURA, etc.; see |
| 21 // ChromeContentBrowserClient::CreateBrowserMainParts()). |
| 22 |
18 class ChromeBrowserMainExtraParts { | 23 class ChromeBrowserMainExtraParts { |
19 public: | 24 public: |
20 virtual ~ChromeBrowserMainExtraParts() {} | 25 virtual ~ChromeBrowserMainExtraParts() {} |
21 | 26 |
22 // EarlyInitialization methods. | 27 // EarlyInitialization methods. |
23 virtual void PreEarlyInitialization() {} | 28 virtual void PreEarlyInitialization() {} |
24 virtual void PostEarlyInitialization() {} | 29 virtual void PostEarlyInitialization() {} |
25 | 30 |
26 // ToolkitInitialized methods. | 31 // ToolkitInitialized methods. |
27 virtual void ToolkitInitialized() {} | 32 virtual void ToolkitInitialized() {} |
28 | 33 |
29 // MainMessageLoopStart methods. | 34 // MainMessageLoopStart methods. |
30 virtual void PreMainMessageLoopStart() {} | 35 virtual void PreMainMessageLoopStart() {} |
31 virtual void PostMainMessageLoopStart() {} | 36 virtual void PostMainMessageLoopStart() {} |
32 | 37 |
33 // MainMessageLoopRun methods. | 38 // MainMessageLoopRun methods. |
34 virtual void PreProfileInit() {} | 39 virtual void PreProfileInit() {} |
35 virtual void PostProfileInit() {} | 40 virtual void PostProfileInit() {} |
| 41 virtual void PreInteractiveFirstRunInit() {} |
| 42 virtual void PostInteractiveFirstRunInit() {} |
36 virtual void PreBrowserStart() {} | 43 virtual void PreBrowserStart() {} |
37 virtual void PostBrowserStart() {} | 44 virtual void PostBrowserStart() {} |
38 virtual void PreMainMessageLoopRun() {} | 45 virtual void PreMainMessageLoopRun() {} |
39 virtual void PostMainMessageLoopRun() {} | 46 virtual void PostMainMessageLoopRun() {} |
40 }; | 47 }; |
41 | 48 |
42 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | 49 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ |
OLD | NEW |