[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 | |||||
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 8 | // Interface class for Parts owned by ChromeBrowserMainParts. |
9 | // The default implementation for all methods is empty. | ||||
10 | |||||
11 | // Most of these map to content::BrowserMainParts methods. This interface is | ||||
12 | // separate to allow stages to be further subdivided for Chrome specific | ||||
13 | // initialization stages (e.g. browser process init, profile init). | ||||
14 | |||||
[email protected] | 60e78b5 | 2012-11-30 02:06:21 | [diff] [blame] | 15 | // While ChromeBrowserMainParts are platform-specific, |
16 | // ChromeBrowserMainExtraParts are used to do further initialization for various | ||||
17 | // Chrome toolkits (e.g., GTK, VIEWS, ASH, AURA, etc.; see | ||||
18 | // ChromeContentBrowserClient::CreateBrowserMainParts()). | ||||
19 | |||||
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 20 | class ChromeBrowserMainExtraParts { |
21 | public: | ||||
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 22 | virtual ~ChromeBrowserMainExtraParts() {} |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 23 | |
24 | // EarlyInitialization methods. | ||||
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 25 | virtual void PreEarlyInitialization() {} |
26 | virtual void PostEarlyInitialization() {} | ||||
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 27 | |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 28 | // ToolkitInitialized methods. |
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 29 | virtual void ToolkitInitialized() {} |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 30 | |
[email protected] | 2167cd6 | 2011-11-30 21:20:21 | [diff] [blame] | 31 | // MainMessageLoopStart methods. |
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 32 | virtual void PreMainMessageLoopStart() {} |
33 | virtual void PostMainMessageLoopStart() {} | ||||
[email protected] | 2167cd6 | 2011-11-30 21:20:21 | [diff] [blame] | 34 | |
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 35 | // MainMessageLoopRun methods. |
[email protected] | 5607681 | 2013-04-10 03:29:25 | [diff] [blame] | 36 | virtual void PreCreateThreads() {} |
Ken Rockot | acbf3d8c | 2019-06-13 23:10:27 | [diff] [blame] | 37 | virtual void PostCreateThreads() {} |
[email protected] | 5c76004 | 2012-05-30 20:52:52 | [diff] [blame] | 38 | virtual void PreProfileInit() {} |
39 | virtual void PostProfileInit() {} | ||||
40 | virtual void PreBrowserStart() {} | ||||
41 | virtual void PostBrowserStart() {} | ||||
42 | virtual void PreMainMessageLoopRun() {} | ||||
43 | virtual void PostMainMessageLoopRun() {} | ||||
[email protected] | 50462bf0 | 2011-11-21 19:13:31 | [diff] [blame] | 44 | }; |
45 | |||||
46 | #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ |