Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: chrome/browser/chrome_browser_main_extra_parts.h

Issue 10443091: Make BrowserMainParts have an empty implementation to make embedding easier. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_extra_parts.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class ChromeBrowserMainExtraParts { 18 class ChromeBrowserMainExtraParts {
19 public: 19 public:
20 ChromeBrowserMainExtraParts(); 20 virtual ~ChromeBrowserMainExtraParts() {}
21 virtual ~ChromeBrowserMainExtraParts();
22 21
23 // EarlyInitialization methods. 22 // EarlyInitialization methods.
24 virtual void PreEarlyInitialization(); 23 virtual void PreEarlyInitialization() {}
25 virtual void PostEarlyInitialization(); 24 virtual void PostEarlyInitialization() {}
26 25
27 // ToolkitInitialized methods. 26 // ToolkitInitialized methods.
28 virtual void ToolkitInitialized(); 27 virtual void ToolkitInitialized() {}
29 28
30 // MainMessageLoopStart methods. 29 // MainMessageLoopStart methods.
31 virtual void PreMainMessageLoopStart(); 30 virtual void PreMainMessageLoopStart() {}
32 virtual void PostMainMessageLoopStart(); 31 virtual void PostMainMessageLoopStart() {}
33 32
34 // MainMessageLoopRun methods. 33 // MainMessageLoopRun methods.
35 virtual void PreProfileInit(); 34 virtual void PreProfileInit() {}
36 virtual void PostProfileInit(); 35 virtual void PostProfileInit() {}
37 virtual void PreBrowserStart(); 36 virtual void PreBrowserStart() {}
38 virtual void PostBrowserStart(); 37 virtual void PostBrowserStart() {}
39 virtual void PreMainMessageLoopRun(); 38 virtual void PreMainMessageLoopRun() {}
40 virtual void PostMainMessageLoopRun(); 39 virtual void PostMainMessageLoopRun() {}
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraParts);
44 }; 40 };
45 41
46 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ 42 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main_extra_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698