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 org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import org.chromium.base.ThreadUtils; | 7 import org.chromium.base.ThreadUtils; |
8 import org.chromium.base.annotations.CalledByNative; | 8 import org.chromium.base.annotations.CalledByNative; |
9 import org.chromium.base.annotations.JNINamespace; | 9 import org.chromium.base.annotations.JNINamespace; |
10 | 10 |
11 /** | 11 /** |
12 * Implementations of various static methods, and also a home for static | 12 * Implementations of various static methods, and also a home for static |
13 * data structures that are meant to be shared between all webviews. | 13 * data structures that are meant to be shared between all webviews. |
14 */ | 14 */ |
15 @JNINamespace("android_webview") | 15 @JNINamespace("android_webview") |
16 public class AwContentsStatics { | 16 public class AwContentsStatics { |
17 | 17 |
18 private static ClientCertLookupTable sClientCertLookupTable; | 18 private static ClientCertLookupTable sClientCertLookupTable; |
19 | 19 |
20 private static String sUnreachableWebDataUrl; | 20 private static String sUnreachableWebDataUrl; |
21 | 21 |
22 private static boolean sRecordFullDocument = false; | 22 private static boolean sRecordFullDocument; |
23 | 23 |
24 /** | 24 /** |
25 * Return the client certificate lookup table. | 25 * Return the client certificate lookup table. |
26 */ | 26 */ |
27 public static ClientCertLookupTable getClientCertLookupTable() { | 27 public static ClientCertLookupTable getClientCertLookupTable() { |
28 ThreadUtils.assertOnUiThread(); | 28 ThreadUtils.assertOnUiThread(); |
29 if (sClientCertLookupTable == null) { | 29 if (sClientCertLookupTable == null) { |
30 sClientCertLookupTable = new ClientCertLookupTable(); | 30 sClientCertLookupTable = new ClientCertLookupTable(); |
31 } | 31 } |
32 return sClientCertLookupTable; | 32 return sClientCertLookupTable; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 //--------------------------------------------------------------------------
------------------ | 82 //--------------------------------------------------------------------------
------------------ |
83 // Native methods | 83 // Native methods |
84 //--------------------------------------------------------------------------
------------------ | 84 //--------------------------------------------------------------------------
------------------ |
85 private static native void nativeClearClientCertPreferences(Runnable callbac
k); | 85 private static native void nativeClearClientCertPreferences(Runnable callbac
k); |
86 private static native String nativeGetUnreachableWebDataUrl(); | 86 private static native String nativeGetUnreachableWebDataUrl(); |
87 private static native void nativeSetLegacyCacheRemovalDelayForTest(long time
outMs); | 87 private static native void nativeSetLegacyCacheRemovalDelayForTest(long time
outMs); |
88 private static native String nativeGetProductVersion(); | 88 private static native String nativeGetProductVersion(); |
89 private static native void nativeSetServiceWorkerIoThreadClient( | 89 private static native void nativeSetServiceWorkerIoThreadClient( |
90 AwContentsIoThreadClient ioThreadClient, AwBrowserContext browserCon
text); | 90 AwContentsIoThreadClient ioThreadClient, AwBrowserContext browserCon
text); |
91 } | 91 } |
OLD | NEW |