OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/ssl/ssl_policy.h" | 5 #include "chrome/browser/ssl/ssl_policy.h" |
6 | 6 |
7 #include "app/l10n_util.h" | |
8 #include "app/resource_bundle.h" | |
9 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 8 #include "base/command_line.h" |
11 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
12 #include "base/singleton.h" | 10 #include "base/singleton.h" |
13 #include "base/string_piece.h" | 11 #include "base/string_piece.h" |
14 #include "base/string_util.h" | 12 #include "base/string_util.h" |
15 #include "chrome/browser/cert_store.h" | 13 #include "chrome/browser/cert_store.h" |
16 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
17 #include "chrome/browser/renderer_host/render_process_host.h" | 15 #include "chrome/browser/renderer_host/render_process_host.h" |
18 #include "chrome/browser/renderer_host/render_view_host.h" | 16 #include "chrome/browser/renderer_host/render_view_host.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 236 |
239 entry->ssl().set_security_style(entry->url().SchemeIsSecure() ? | 237 entry->ssl().set_security_style(entry->url().SchemeIsSecure() ? |
240 SECURITY_STYLE_AUTHENTICATED : SECURITY_STYLE_UNAUTHENTICATED); | 238 SECURITY_STYLE_AUTHENTICATED : SECURITY_STYLE_UNAUTHENTICATED); |
241 } | 239 } |
242 | 240 |
243 void SSLPolicy::OriginRanInsecureContent(const std::string& origin, int pid) { | 241 void SSLPolicy::OriginRanInsecureContent(const std::string& origin, int pid) { |
244 GURL parsed_origin(origin); | 242 GURL parsed_origin(origin); |
245 if (parsed_origin.SchemeIsSecure()) | 243 if (parsed_origin.SchemeIsSecure()) |
246 backend_->HostRanInsecureContent(parsed_origin.host(), pid); | 244 backend_->HostRanInsecureContent(parsed_origin.host(), pid); |
247 } | 245 } |
OLD | NEW |