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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 12208099: Create java AwBrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index bbd07b407a628eb04a42acfaedc8b2be335062c3..24ac199697b02a5f48931ad4969537cd2ffb89be 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -91,6 +91,7 @@ public class AwContents {
}
private int mNativeAwContents;
+ private AwBrowserContext mBrowserContext;
private ViewGroup mContainerView;
private ContentViewCore mContentViewCore;
private AwContentsClient mContentsClient;
@@ -227,14 +228,24 @@ public class AwContents {
}
}
+ // TODO(joth): Delete this when all callers pass browserContext
+ public AwContents(ViewGroup containerView, InternalAccessDelegate internalAccessAdapter,
+ AwContentsClient contentsClient, boolean isAccessFromFileURLsGrantedByDefault) {
+ this(AwBrowserProcess.getDefaultBrowserContext(), containerView, internalAccessAdapter,
+ contentsClient, isAccessFromFileURLsGrantedByDefault);
+ }
+
/**
+ * @param browserContext the browsing context to associate this view contents with.
* @param containerView the view-hierarchy item this object will be bound to.
* @param internalAccessAdapter to access private methods on containerView.
* @param contentsClient will receive API callbacks from this WebView Contents
* @param isAccessFromFileURLsGrantedByDefault passed to ContentViewCore.initialize.
*/
- public AwContents(ViewGroup containerView, InternalAccessDelegate internalAccessAdapter,
- AwContentsClient contentsClient, boolean isAccessFromFileURLsGrantedByDefault) {
+ public AwContents(AwBrowserContext browserContext, ViewGroup containerView,
+ InternalAccessDelegate internalAccessAdapter, AwContentsClient contentsClient,
+ boolean isAccessFromFileURLsGrantedByDefault) {
+ mBrowserContext = browserContext;
mContainerView = containerView;
mInternalAccessAdapter = internalAccessAdapter;
// Note that ContentViewCore must be set up before AwContents, as ContentViewCore
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698