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

Unified Diff: chrome/browser/chrome_browser_main_extra_parts.h

Issue 8539038: Add ChromeBrowserMainExtraParts for non main parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again + explicit reset of parts_ Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_browser_main_extra_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_extra_parts.h
diff --git a/chrome/browser/chrome_browser_main_extra_parts.h b/chrome/browser/chrome_browser_main_extra_parts.h
new file mode 100644
index 0000000000000000000000000000000000000000..a839d443038a46c5f6e7f2d021e4d537efc77345
--- /dev/null
+++ b/chrome/browser/chrome_browser_main_extra_parts.h
@@ -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_
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_browser_main_extra_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698