[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | ||||
6 | #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | ||||
7 | |||||
8 | #include "base/basictypes.h" | ||||
9 | #include "base/compiler_specific.h" | ||||
10 | |||||
11 | // Interface class for Parts owned by ChromeBrowserMainParts. | ||||
12 | // The default implementation for all methods is empty. | ||||
13 | |||||
14 | // Most of these map to content::BrowserMainParts methods. This interface is | ||||
15 | // separate to allow stages to be further subdivided for Chrome specific | ||||
16 | // initialization stages (e.g. browser process init, profile init). | ||||
17 | |||||
18 | class ChromeBrowserMainExtraParts { | ||||
19 | public: | ||||
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 20 | virtual ~ChromeBrowserMainExtraParts() {} |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 21 | |
22 | // EarlyInitialization methods. | ||||
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 23 | virtual void PreEarlyInitialization() {} |
24 | virtual void PostEarlyInitialization() {} | ||||
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 25 | |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 26 | // ToolkitInitialized methods. |
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 27 | virtual void ToolkitInitialized() {} |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 28 | |
[email protected] | 2167cd6 | 2011-11-30 21:20:21 | [diff] [blame] | 29 | // MainMessageLoopStart methods. |
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 30 | virtual void PreMainMessageLoopStart() {} |
31 | virtual void PostMainMessageLoopStart() {} | ||||
[email protected] | 2167cd6 | 2011-11-30 21:20:21 | [diff] [blame] | 32 | |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 33 | // MainMessageLoopRun methods. |
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 34 | virtual void PreProfileInit() {} |
35 | virtual void PostProfileInit() {} | ||||
36 | virtual void PreBrowserStart() {} | ||||
37 | virtual void PostBrowserStart() {} | ||||
38 | virtual void PreMainMessageLoopRun() {} | ||||
39 | virtual void PostMainMessageLoopRun() {} | ||||
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 40 | }; |
41 | |||||
42 | #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ |