| Index: android_webview/native/aw_browser_dependency_factory.h
|
| diff --git a/android_webview/native/aw_browser_dependency_factory.h b/android_webview/native/aw_browser_dependency_factory.h
|
| index ebf03fd93558ccbcfc8feace1835d4869a488c3a..791406951538dbc2876c0b328b623f250631dbbd 100644
|
| --- a/android_webview/native/aw_browser_dependency_factory.h
|
| +++ b/android_webview/native/aw_browser_dependency_factory.h
|
| @@ -8,6 +8,7 @@
|
| #include "base/basictypes.h"
|
|
|
| namespace content {
|
| +class BrowserContext;
|
| class JavaScriptDialogCreator;
|
| class WebContents;
|
| }
|
| @@ -35,6 +36,9 @@ class AwBrowserDependencyFactory {
|
| // Returns the singleton instance. |SetInstance| must have been called.
|
| static AwBrowserDependencyFactory* GetInstance();
|
|
|
| + // Returns the current browser context based on the specified mode.
|
| + virtual content::BrowserContext* GetBrowserContext(bool incognito) = 0;
|
| +
|
| // Constructs and returns ownership of a WebContents instance.
|
| virtual content::WebContents* CreateWebContents(bool incognito) = 0;
|
|
|
|
|