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

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

Issue 1314843007: Refactor connection_security into SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: create SecurityStateModel for chromeos login webview Created 5 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.ssl;
6
7 import org.chromium.content_public.browser.WebContents;
8
9 /**
10 * Provides a way of accessing helpers for connection security levels.
11 */
12 public class ConnectionSecurity {
13 /**
14 * Fetch the security level for a given web contents.
15 *
16 * @param webContents The web contents to get the security level for.
17 * @return The ConnectionSecurityLevel for the specified web contents.
18 *
19 * @see ConnectionSecurityLevel
20 */
21 public static int getSecurityLevelForWebContents(WebContents webContents) {
22 if (webContents == null) return ConnectionSecurityLevel.NONE;
23 return nativeGetSecurityLevelForWebContents(webContents);
24 }
25
26 private ConnectionSecurity() {}
27
28 private static native int nativeGetSecurityLevelForWebContents(WebContents w ebContents);
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698