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

Unified Diff: content/browser/content_browser_client.h

Issue 7779040: Start moving code from BrowserMain to content, so that it can be reused by all embedders of conte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix windows unittest Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/content_browser_client.h
===================================================================
--- content/browser/content_browser_client.h (revision 99756)
+++ content/browser/content_browser_client.h (working copy)
@@ -32,8 +32,13 @@
class TabContentsView;
class WorkerProcessHost;
struct DesktopNotificationHostMsg_Show_Params;
+struct MainFunctionParams;
struct WebPreferences;
+namespace content {
+class BrowserMainParts;
+}
+
namespace crypto {
class CryptoModuleBlockingPasswordDelegate;
}
@@ -59,6 +64,7 @@
namespace content {
class BrowserContext;
+class BrowserMainParts;
class ResourceContext;
class WebUIFactory;
@@ -74,6 +80,12 @@
public:
virtual ~ContentBrowserClient() {}
+ // Allows the embedder to return a customed BrowserMainParts implementation
+ // for the browser staratup code. Can return NULL, in which case the default
+ // is used.
+ virtual BrowserMainParts* CreateBrowserMainParts(
+ const MainFunctionParams& parameters) = 0;
+
virtual TabContentsView* CreateTabContentsView(TabContents* tab_contents) = 0;
// Notifies that a new RenderHostView has been created.

Powered by Google App Engine
This is Rietveld 408576698