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

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

Issue 27500004: Listen for new system certificates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.ComponentCallbacks2; 7 import android.content.ComponentCallbacks2;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.pm.PackageManager; 9 import android.content.pm.PackageManager;
10 import android.content.res.Configuration; 10 import android.content.res.Configuration;
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 String password) { 1305 String password) {
1306 mBrowserContext.getHttpAuthDatabase(mContentViewCore.getContext()) 1306 mBrowserContext.getHttpAuthDatabase(mContentViewCore.getContext())
1307 .setHttpAuthUsernamePassword(host, realm, username, password); 1307 .setHttpAuthUsernamePassword(host, realm, username, password);
1308 } 1308 }
1309 1309
1310 /** 1310 /**
1311 * @see android.webkit.WebView#getCertificate() 1311 * @see android.webkit.WebView#getCertificate()
1312 */ 1312 */
1313 public SslCertificate getCertificate() { 1313 public SslCertificate getCertificate() {
1314 if (mNativeAwContents == 0) return null; 1314 if (mNativeAwContents == 0) return null;
1315 return SslUtil.getCertificateFromDerBytes(nativeGetCertificate(mNativeAw Contents)); 1315 return SslUtil.getCertificateFromDerBytes(mContainerView.getContext(),
1316 nativeGetCertificate(mNativeAw Contents));
1316 } 1317 }
1317 1318
1318 /** 1319 /**
1319 * @see android.webkit.WebView#clearSslPreferences() 1320 * @see android.webkit.WebView#clearSslPreferences()
1320 */ 1321 */
1321 public void clearSslPreferences() { 1322 public void clearSslPreferences() {
1322 mContentViewCore.clearSslPreferences(); 1323 mContentViewCore.clearSslPreferences();
1323 } 1324 }
1324 1325
1325 /** 1326 /**
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 private native int nativeCapturePicture(int nativeAwContents, int width, int height); 2043 private native int nativeCapturePicture(int nativeAwContents, int width, int height);
2043 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e nabled); 2044 private native void nativeEnableOnNewPicture(int nativeAwContents, boolean e nabled);
2044 2045
2045 private native void nativeInvokeGeolocationCallback( 2046 private native void nativeInvokeGeolocationCallback(
2046 int nativeAwContents, boolean value, String requestingFrame); 2047 int nativeAwContents, boolean value, String requestingFrame);
2047 2048
2048 private native void nativeSetJsOnlineProperty(int nativeAwContents, boolean networkUp); 2049 private native void nativeSetJsOnlineProperty(int nativeAwContents, boolean networkUp);
2049 2050
2050 private native void nativeTrimMemory(int nativeAwContents, int level); 2051 private native void nativeTrimMemory(int nativeAwContents, int level);
2051 } 2052 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698