blob: c5e8850c241eac0bdfd521928b1b867e60a234fc [file] [log] [blame]
[email protected]50462bf02011-11-21 19:13:311// 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]50462bf02011-11-21 19:13:318// 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]60e78b52012-11-30 02:06:2115// 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]50462bf02011-11-21 19:13:3120class ChromeBrowserMainExtraParts {
21 public:
[email protected]5c760042012-05-30 20:52:5222 virtual ~ChromeBrowserMainExtraParts() {}
[email protected]50462bf02011-11-21 19:13:3123
24 // EarlyInitialization methods.
[email protected]5c760042012-05-30 20:52:5225 virtual void PreEarlyInitialization() {}
26 virtual void PostEarlyInitialization() {}
[email protected]50462bf02011-11-21 19:13:3127
[email protected]50462bf02011-11-21 19:13:3128 // ToolkitInitialized methods.
[email protected]5c760042012-05-30 20:52:5229 virtual void ToolkitInitialized() {}
[email protected]50462bf02011-11-21 19:13:3130
[email protected]2167cd62011-11-30 21:20:2131 // MainMessageLoopStart methods.
[email protected]5c760042012-05-30 20:52:5232 virtual void PreMainMessageLoopStart() {}
33 virtual void PostMainMessageLoopStart() {}
[email protected]2167cd62011-11-30 21:20:2134
[email protected]50462bf02011-11-21 19:13:3135 // MainMessageLoopRun methods.
[email protected]56076812013-04-10 03:29:2536 virtual void PreCreateThreads() {}
Ken Rockotacbf3d8c2019-06-13 23:10:2737 virtual void PostCreateThreads() {}
[email protected]5c760042012-05-30 20:52:5238 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]50462bf02011-11-21 19:13:3144};
45
46#endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_