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