forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ChromeBrowserParts for non main parts.
This reverts the code back to a single instance of BrowserMainParts, with auxillary parts (Gtk, Views, Aura, Touch) implemented from a new base class, ChromeBrowserParts, which has a Chrome specific interface, allowing initialization to be better subdivided. This should fix the notifications auto tests. BUG=103821 TEST=Make sure all tests and autotests run Review URL: http://codereview.chromium.org/8539038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110327 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
stevenjb@google.com
committed
Nov 16, 2011
1 parent
e29014c
commit a2b6aab
Showing
33 changed files
with
351 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2011 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "chrome/browser/chrome_browser_main_extra_parts.h" | ||
|
||
ChromeBrowserMainExtraParts::ChromeBrowserMainExtraParts() { | ||
} | ||
|
||
ChromeBrowserMainExtraParts::~ChromeBrowserMainExtraParts() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PreEarlyInitialization() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PostEarlyInitialization() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PreMainMessageLoopStart() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PostMainMessageLoopStart() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::ToolkitInitialized() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PostBrowserProcessInit() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PostProfileInitialized() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PreMainMessageLoopRun() { | ||
} | ||
|
||
void ChromeBrowserMainExtraParts::PostMainMessageLoopRun() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) 2011 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | ||
#define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ | ||
|
||
#include "base/basictypes.h" | ||
#include "base/compiler_specific.h" | ||
|
||
// Interface class for Parts owned by ChromeBrowserMainParts. | ||
// The default implementation for all methods is empty. | ||
|
||
// Most of these map to content::BrowserMainParts methods. This interface is | ||
// separate to allow stages to be further subdivided for Chrome specific | ||
// initialization stages (e.g. browser process init, profile init). | ||
|
||
class ChromeBrowserMainExtraParts { | ||
public: | ||
ChromeBrowserMainExtraParts(); | ||
virtual ~ChromeBrowserMainExtraParts(); | ||
|
||
// EarlyInitialization methods. | ||
virtual void PreEarlyInitialization(); | ||
virtual void PostEarlyInitialization(); | ||
|
||
// PreMainMessageLoopStart methods. | ||
virtual void PreMainMessageLoopStart(); | ||
virtual void PostMainMessageLoopStart(); | ||
|
||
// ToolkitInitialized methods. | ||
virtual void ToolkitInitialized(); | ||
|
||
// MainMessageLoopRun methods. | ||
virtual void PostBrowserProcessInit(); | ||
virtual void PostProfileInitialized(); | ||
virtual void PreMainMessageLoopRun(); | ||
virtual void PostMainMessageLoopRun(); | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraParts); | ||
}; | ||
|
||
#endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.