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

Unified Diff: android_webview/native/aw_browser_dependency_factory.h

Issue 10913074: Add WebView implementation for CookieManager. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix path for UrlUtils.java Created 8 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: 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;

Powered by Google App Engine
This is Rietveld 408576698