| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 com.android.webview.chromium; | 5 package com.android.webview.chromium; |
| 6 | 6 |
| 7 import android.Manifest; | 7 import android.Manifest; |
| 8 import android.app.ActivityManager; | 8 import android.app.ActivityManager; |
| 9 import android.content.ComponentCallbacks2; | 9 import android.content.ComponentCallbacks2; |
| 10 import android.content.Context; | 10 import android.content.Context; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 private WebViewDatabaseAdapter mWebViewDatabase; | 169 private WebViewDatabaseAdapter mWebViewDatabase; |
| 170 private AwDevToolsServer mDevToolsServer; | 170 private AwDevToolsServer mDevToolsServer; |
| 171 private Object mServiceWorkerController; | 171 private Object mServiceWorkerController; |
| 172 | 172 |
| 173 // Read/write protected by mLock. | 173 // Read/write protected by mLock. |
| 174 private boolean mStarted; | 174 private boolean mStarted; |
| 175 | 175 |
| 176 private SharedPreferences mWebViewPrefs; | 176 private SharedPreferences mWebViewPrefs; |
| 177 private WebViewDelegate mWebViewDelegate; | 177 private WebViewDelegate mWebViewDelegate; |
| 178 | 178 |
| 179 private boolean mShouldDisableThreadChecking; | 179 boolean mShouldDisableThreadChecking; |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * Entry point for newer versions of Android. | 182 * Entry point for newer versions of Android. |
| 183 */ | 183 */ |
| 184 public static WebViewChromiumFactoryProvider create(android.webkit.WebViewDe
legate delegate) { | 184 public static WebViewChromiumFactoryProvider create(android.webkit.WebViewDe
legate delegate) { |
| 185 return new WebViewChromiumFactoryProvider(delegate); | 185 return new WebViewChromiumFactoryProvider(delegate); |
| 186 } | 186 } |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * Constructor called by the API 21 version of {@link WebViewFactory} and ea
rlier. | 189 * Constructor called by the API 21 version of {@link WebViewFactory} and ea
rlier. |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 WebViewDelegate getWebViewDelegate() { | 687 WebViewDelegate getWebViewDelegate() { |
| 688 return mWebViewDelegate; | 688 return mWebViewDelegate; |
| 689 } | 689 } |
| 690 | 690 |
| 691 // The method to support unreleased Android. | 691 // The method to support unreleased Android. |
| 692 WebViewContentsClientAdapter createWebViewContentsClientAdapter(WebView webV
iew, | 692 WebViewContentsClientAdapter createWebViewContentsClientAdapter(WebView webV
iew, |
| 693 Context context) { | 693 Context context) { |
| 694 return new WebViewContentsClientAdapter(webView, context, mWebViewDelega
te); | 694 return new WebViewContentsClientAdapter(webView, context, mWebViewDelega
te); |
| 695 } | 695 } |
| 696 } | 696 } |
| OLD | NEW |