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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwBrowserContext.java

Issue 1431473004: Add Kerberos support to webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ActivitylessNegoAuth
Patch Set: Document the new supported policies Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.SharedPreferences; 8 import android.content.SharedPreferences;
9 9
10 import org.chromium.android_webview.policy.AwPolicyProvider;
11 import org.chromium.content.browser.ContentViewStatics; 10 import org.chromium.content.browser.ContentViewStatics;
12 import org.chromium.net.DefaultAndroidKeyStore; 11 import org.chromium.net.DefaultAndroidKeyStore;
13 import org.chromium.policy.CombinedPolicyProvider;
14 12
15 /** 13 /**
16 * Java side of the Browser Context: contains all the java side objects needed t o host one 14 * Java side of the Browser Context: contains all the java side objects needed t o host one
17 * browing session (i.e. profile). 15 * browing session (i.e. profile).
18 * Note that due to running in single process mode, and limitations on renderer process only 16 * Note that due to running in single process mode, and limitations on renderer process only
19 * being able to use a single browser context, currently there can only be one A wBrowserContext 17 * being able to use a single browser context, currently there can only be one A wBrowserContext
20 * instance, so at this point the class mostly exists for conceptual clarity. 18 * instance, so at this point the class mostly exists for conceptual clarity.
21 */ 19 */
22 public class AwBrowserContext { 20 public class AwBrowserContext {
23 private static final String HTTP_AUTH_DATABASE_FILE = "http_auth.db"; 21 private static final String HTTP_AUTH_DATABASE_FILE = "http_auth.db";
24 22
25 private SharedPreferences mSharedPreferences; 23 private SharedPreferences mSharedPreferences;
26 24
27 private AwGeolocationPermissions mGeolocationPermissions; 25 private AwGeolocationPermissions mGeolocationPermissions;
28 private AwCookieManager mCookieManager; 26 private AwCookieManager mCookieManager;
29 private AwFormDatabase mFormDatabase; 27 private AwFormDatabase mFormDatabase;
30 private HttpAuthDatabase mHttpAuthDatabase; 28 private HttpAuthDatabase mHttpAuthDatabase;
31 private DefaultAndroidKeyStore mLocalKeyStore; 29 private DefaultAndroidKeyStore mLocalKeyStore;
32 private AwMessagePortService mMessagePortService; 30 private AwMessagePortService mMessagePortService;
33 31
34 public AwBrowserContext(SharedPreferences sharedPreferences, Context applica tionContext) { 32 public AwBrowserContext(SharedPreferences sharedPreferences, Context applica tionContext) {
35 mSharedPreferences = sharedPreferences; 33 mSharedPreferences = sharedPreferences;
36 CombinedPolicyProvider.get().registerProvider(new AwPolicyProvider(appli cationContext));
37 } 34 }
38 35
39 public AwGeolocationPermissions getGeolocationPermissions() { 36 public AwGeolocationPermissions getGeolocationPermissions() {
40 if (mGeolocationPermissions == null) { 37 if (mGeolocationPermissions == null) {
41 mGeolocationPermissions = new AwGeolocationPermissions(mSharedPrefer ences); 38 mGeolocationPermissions = new AwGeolocationPermissions(mSharedPrefer ences);
42 } 39 }
43 return mGeolocationPermissions; 40 return mGeolocationPermissions;
44 } 41 }
45 42
46 public AwCookieManager getCookieManager() { 43 public AwCookieManager getCookieManager() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ContentViewStatics.setWebKitSharedTimersSuspended(true); 82 ContentViewStatics.setWebKitSharedTimersSuspended(true);
86 } 83 }
87 84
88 /** 85 /**
89 * @see android.webkit.WebView#resumeTimers() 86 * @see android.webkit.WebView#resumeTimers()
90 */ 87 */
91 public void resumeTimers() { 88 public void resumeTimers() {
92 ContentViewStatics.setWebKitSharedTimersSuspended(false); 89 ContentViewStatics.setWebKitSharedTimersSuspended(false);
93 } 90 }
94 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698