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. |