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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ssl/SecurityStateModel.java

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.chrome.browser.ssl; 5 package org.chromium.chrome.browser.ssl;
6 6
7 import org.chromium.components.security_state.ConnectionSecurityLevel;
7 import org.chromium.content_public.browser.WebContents; 8 import org.chromium.content_public.browser.WebContents;
8 9
9 /** 10 /**
10 * Provides a way of accessing helpers for page security state. 11 * Provides a way of accessing helpers for page security state.
11 */ 12 */
12 public class SecurityStateModel { 13 public class SecurityStateModel {
13 /** 14 /**
14 * Fetch the security level for a given web contents. 15 * Fetch the security level for a given web contents.
15 * 16 *
16 * @param webContents The web contents to get the security level for. 17 * @param webContents The web contents to get the security level for.
(...skipping 23 matching lines...) Expand all
40 if (webContents == null) return false; 41 if (webContents == null) return false;
41 return nativeIsPassiveMixedContentPresent(webContents); 42 return nativeIsPassiveMixedContentPresent(webContents);
42 } 43 }
43 44
44 private SecurityStateModel() {} 45 private SecurityStateModel() {}
45 46
46 private static native int nativeGetSecurityLevelForWebContents(WebContents w ebContents); 47 private static native int nativeGetSecurityLevelForWebContents(WebContents w ebContents);
47 private static native boolean nativeIsDeprecatedSHA1Present(WebContents webC ontents); 48 private static native boolean nativeIsDeprecatedSHA1Present(WebContents webC ontents);
48 private static native boolean nativeIsPassiveMixedContentPresent(WebContents webContents); 49 private static native boolean nativeIsPassiveMixedContentPresent(WebContents webContents);
49 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698