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

Side by Side Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java

Issue 2227863002: aw: Add new entry point into webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 private WebViewDatabaseAdapter mWebViewDatabase; 159 private WebViewDatabaseAdapter mWebViewDatabase;
160 private AwDevToolsServer mDevToolsServer; 160 private AwDevToolsServer mDevToolsServer;
161 161
162 // Read/write protected by mLock. 162 // Read/write protected by mLock.
163 private boolean mStarted; 163 private boolean mStarted;
164 164
165 private SharedPreferences mWebViewPrefs; 165 private SharedPreferences mWebViewPrefs;
166 private WebViewDelegate mWebViewDelegate; 166 private WebViewDelegate mWebViewDelegate;
167 167
168 /** 168 /**
169 * Entry point for newer versions of Android.
170 */
171 public static WebViewChromiumFactoryProvider create(android.webkit.WebViewDe legate delegate) {
172 return new WebViewChromiumFactoryProvider(delegate);
173 }
174
175 /**
169 * Constructor called by the API 21 version of {@link WebViewFactory} and ea rlier. 176 * Constructor called by the API 21 version of {@link WebViewFactory} and ea rlier.
170 */ 177 */
171 public WebViewChromiumFactoryProvider() { 178 public WebViewChromiumFactoryProvider() {
172 initialize(WebViewDelegateFactory.createApi21CompatibilityDelegate()); 179 initialize(WebViewDelegateFactory.createApi21CompatibilityDelegate());
173 } 180 }
174 181
175 /** 182 /**
176 * Constructor called by the API 22 version of {@link WebViewFactory} and la ter. 183 * Constructor called by the API 22 version of {@link WebViewFactory} and la ter.
177 */ 184 */
178 public WebViewChromiumFactoryProvider(android.webkit.WebViewDelegate delegat e) { 185 public WebViewChromiumFactoryProvider(android.webkit.WebViewDelegate delegat e) {
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 mWebViewDatabase = new WebViewDatabaseAdapter(this, awDatabase); 561 mWebViewDatabase = new WebViewDatabaseAdapter(this, awDatabase);
555 } 562 }
556 } 563 }
557 return mWebViewDatabase; 564 return mWebViewDatabase;
558 } 565 }
559 566
560 WebViewDelegate getWebViewDelegate() { 567 WebViewDelegate getWebViewDelegate() {
561 return mWebViewDelegate; 568 return mWebViewDelegate;
562 } 569 }
563 } 570 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698