Index: chrome/browser/chrome_browser_parts.h |
diff --git a/chrome/browser/chrome_browser_parts.h b/chrome/browser/chrome_browser_parts.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..345c512ab9e1544fb5e7ea6963cd12a1aabcda7a |
--- /dev/null |
+++ b/chrome/browser/chrome_browser_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_PARTS_H_ |
+#define CHROME_BROWSER_CHROME_BROWSER_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 ChromeBrowserParts { |
jam
2011/11/14 19:45:55
it's confusing to have both ChromeBrowserParts and
stevenjb
2011/11/14 23:31:10
I agree it is confusing, but I specifically avoide
jam
2011/11/15 00:10:51
Sorry to nit, but I don't quite follow this argume
|
+ public: |
+ ChromeBrowserParts(); |
+ virtual ~ChromeBrowserParts(); |
+ |
+ // 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(ChromeBrowserParts); |
+}; |
+ |
+#endif // CHROME_BROWSER_CHROME_BROWSER_PARTS_H_ |