Move SecurityLevel into a class of its own
commitf50c9b4834e151aa6b5538545a503614cb74f5f9
authorestark <estark@chromium.org>
Wed, 13 May 2015 22:02:38 +0000 (13 15:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 13 May 2015 22:02:51 +0000 (13 22:02 +0000)
treea9ba1192b8b1e7a2b1a158c567c818e72eef64e3
parent4282f117db4ddb6b307efad849ec6635095e9cd1
Move SecurityLevel into a class of its own

This CL moves |GetSecurityLevelForWebContents| and the |SecurityLevel|
enum into a class of their own: |ConnectionSecurityHelper| in
//chrome/browser/ssl (since it is applying Chrome-specific security
policy to determine the security level of a page).

Later, we will use the new |ConnectionSecurityHelper| class to compute a
security level for a page to send to the DevTools Security
panel. Specifically, we need to be able to calculate the security level
for a given page, not just the WebContents for the active tab.

BUG=484392

Committed: https://crrev.com/ca7c0a3374c21ab10c821f4f3a890afc79182acf
Cr-Commit-Position: refs/heads/master@{#329591}

Review URL: https://codereview.chromium.org/1123943002

Cr-Commit-Position: refs/heads/master@{#329724}
27 files changed:
chrome/android/BUILD.gn
chrome/android/java/src/org/chromium/chrome/browser/Tab.java
chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java
chrome/android/java/src/org/chromium/chrome/browser/omnibox/OmniboxUrlEmphasizer.java
chrome/android/java/src/org/chromium/chrome/browser/ssl/ConnectionSecurityHelper.java [new file with mode: 0644]
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarModel.java
chrome/android/javatests_shell/src/org/chromium/chrome/browser/TabTest.java
chrome/android/javatests_shell/src/org/chromium/chrome/browser/omnibox/OmniboxUrlEmphasizerTest.java
chrome/browser/android/chrome_jni_registrar.cc
chrome/browser/ssl/connection_security_helper.cc [new file with mode: 0644]
chrome/browser/ssl/connection_security_helper.h [new file with mode: 0644]
chrome/browser/ssl/connection_security_helper_android.cc [new file with mode: 0644]
chrome/browser/ssl/connection_security_helper_android.h [new file with mode: 0644]
chrome/browser/ui/android/toolbar/toolbar_model_android.cc
chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
chrome/browser/ui/toolbar/test_toolbar_model.cc
chrome/browser/ui/toolbar/test_toolbar_model.h
chrome/browser/ui/toolbar/toolbar_model.h
chrome/browser/ui/toolbar/toolbar_model_impl.cc
chrome/browser/ui/toolbar/toolbar_model_impl.h
chrome/browser/ui/views/location_bar/location_bar_view.cc
chrome/browser/ui/views/location_bar/location_bar_view.h
chrome/browser/ui/views/omnibox/omnibox_view_views.cc
chrome/browser/ui/views/omnibox/omnibox_view_views.h
chrome/chrome.gyp
chrome/chrome_browser.gypi