summaryrefslogtreecommitdiffstats
path: root/content/browser/content_browser_client.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-07 00:58:04 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-07 00:58:04 +0000
commitf967b723292a0988bb3789094d5e1641caa0c2f8 (patch)
treec707a6fed79ed5fabc4d7e01d1089eff6bac3e0c /content/browser/content_browser_client.h
parent557d842f64c7a8e33c0fceaf564506917b4a10b8 (diff)
downloadchromium_src-f967b723292a0988bb3789094d5e1641caa0c2f8.zip
chromium_src-f967b723292a0988bb3789094d5e1641caa0c2f8.tar.gz
chromium_src-f967b723292a0988bb3789094d5e1641caa0c2f8.tar.bz2
Start moving code from BrowserMain to content, so that it can be reused by all embedders of content. I've based the refactoring on the existing BrowserMainParts. This is the first step; I didn't want to do it all at the same time because it would be too big. Remaining tasks:-rename the browser_main files in chrome to chrome_browser_main-move the OS specific implementations of BrowserMainParts that are needed for content-finish splitting the remaining BrowserMain function (now that's in TemporaryContinue())BUG=90445
Review URL: http://codereview.chromium.org/7779040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/content_browser_client.h')
-rw-r--r--content/browser/content_browser_client.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/content/browser/content_browser_client.h b/content/browser/content_browser_client.h
index 7fdff59..32fa117 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -32,8 +32,13 @@ class TabContents;
class TabContentsView;
class WorkerProcessHost;
struct DesktopNotificationHostMsg_Show_Params;
+struct MainFunctionParams;
struct WebPreferences;
+namespace content {
+class BrowserMainParts;
+}
+
namespace crypto {
class CryptoModuleBlockingPasswordDelegate;
}
@@ -59,6 +64,7 @@ class Clipboard;
namespace content {
class BrowserContext;
+class BrowserMainParts;
class ResourceContext;
class WebUIFactory;
@@ -74,6 +80,12 @@ class ContentBrowserClient {
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.