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

Side by Side Diff: chrome/browser/ssl/ssl_policy.cc

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
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 "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/renderer_host/render_process_host.h" 13 #include "chrome/browser/renderer_host/render_process_host.h"
14 #include "chrome/browser/renderer_host/render_view_host.h" 14 #include "chrome/browser/renderer_host/render_view_host.h"
15 #include "chrome/browser/renderer_host/site_instance.h" 15 #include "chrome/browser/renderer_host/site_instance.h"
16 #include "chrome/browser/ssl/ssl_cert_error_handler.h" 16 #include "chrome/browser/ssl/ssl_cert_error_handler.h"
17 #include "chrome/browser/ssl/ssl_error_info.h" 17 #include "chrome/browser/ssl/ssl_error_info.h"
18 #include "chrome/browser/ssl/ssl_request_info.h" 18 #include "chrome/browser/ssl/ssl_request_info.h"
19 #include "chrome/browser/tab_contents/navigation_entry.h" 19 #include "chrome/browser/tab_contents/navigation_entry.h"
20 #include "chrome/browser/tab_contents/tab_contents.h" 20 #include "chrome/browser/tab_contents/tab_contents.h"
21 #include "chrome/common/jstemplate_builder.h" 21 #include "chrome/common/jstemplate_builder.h"
22 #include "chrome/common/pref_names.h"
23 #include "chrome/common/time_format.h" 22 #include "chrome/common/time_format.h"
24 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
25 #include "grit/browser_resources.h" 24 #include "grit/browser_resources.h"
26 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
27 #include "net/base/cert_status_flags.h" 26 #include "net/base/cert_status_flags.h"
28 #include "net/base/ssl_info.h" 27 #include "net/base/ssl_info.h"
29 #include "webkit/glue/resource_type.h" 28 #include "webkit/glue/resource_type.h"
30 29
31 namespace { 30 namespace {
32 31
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 251
253 entry->ssl().set_security_style(entry->url().SchemeIsSecure() ? 252 entry->ssl().set_security_style(entry->url().SchemeIsSecure() ?
254 SECURITY_STYLE_AUTHENTICATED : SECURITY_STYLE_UNAUTHENTICATED); 253 SECURITY_STYLE_AUTHENTICATED : SECURITY_STYLE_UNAUTHENTICATED);
255 } 254 }
256 255
257 void SSLPolicy::OriginRanInsecureContent(const std::string& origin, int pid) { 256 void SSLPolicy::OriginRanInsecureContent(const std::string& origin, int pid) {
258 GURL parsed_origin(origin); 257 GURL parsed_origin(origin);
259 if (parsed_origin.SchemeIsSecure()) 258 if (parsed_origin.SchemeIsSecure())
260 backend_->HostRanInsecureContent(parsed_origin.host(), pid); 259 backend_->HostRanInsecureContent(parsed_origin.host(), pid);
261 } 260 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_manager.cc ('k') | chrome/browser/sync/glue/autofill_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698