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

Side by Side Diff: content/browser/ssl/ssl_policy_backend.cc

Issue 7575035: Revert 95541 - Profiles: SSLManger broadcasts SSL_INTERNAL_STATE_CHANGED with a Source<BrowserCon... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.h ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/ssl/ssl_policy_backend.h" 5 #include "content/browser/ssl/ssl_policy_backend.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "content/browser/ssl/ssl_host_state.h" 8 #include "content/browser/ssl/ssl_host_state.h"
9 #include "content/browser/tab_contents/navigation_controller.h" 9 #include "content/browser/tab_contents/navigation_controller.h"
10 10
11 SSLPolicyBackend::SSLPolicyBackend(NavigationController* controller) 11 SSLPolicyBackend::SSLPolicyBackend(NavigationController* controller)
12 : ssl_host_state_(controller->browser_context()->GetSSLHostState()), 12 : ssl_host_state_(controller->browser_context()->GetSSLHostState()) {
13 controller_(controller) { 13 DCHECK(controller);
14 DCHECK(controller_);
15 } 14 }
16 15
17 void SSLPolicyBackend::HostRanInsecureContent(const std::string& host, int id) { 16 void SSLPolicyBackend::HostRanInsecureContent(const std::string& host, int id) {
18 ssl_host_state_->HostRanInsecureContent(host, id); 17 ssl_host_state_->HostRanInsecureContent(host, id);
19 SSLManager::NotifySSLInternalStateChanged(controller_); 18 SSLManager::NotifySSLInternalStateChanged();
20 } 19 }
21 20
22 bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host, 21 bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host,
23 int pid) const { 22 int pid) const {
24 return ssl_host_state_->DidHostRunInsecureContent(host, pid); 23 return ssl_host_state_->DidHostRunInsecureContent(host, pid);
25 } 24 }
26 25
27 void SSLPolicyBackend::DenyCertForHost(net::X509Certificate* cert, 26 void SSLPolicyBackend::DenyCertForHost(net::X509Certificate* cert,
28 const std::string& host) { 27 const std::string& host) {
29 ssl_host_state_->DenyCertForHost(cert, host); 28 ssl_host_state_->DenyCertForHost(cert, host);
30 } 29 }
31 30
32 void SSLPolicyBackend::AllowCertForHost(net::X509Certificate* cert, 31 void SSLPolicyBackend::AllowCertForHost(net::X509Certificate* cert,
33 const std::string& host) { 32 const std::string& host) {
34 ssl_host_state_->AllowCertForHost(cert, host); 33 ssl_host_state_->AllowCertForHost(cert, host);
35 } 34 }
36 35
37 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy( 36 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy(
38 net::X509Certificate* cert, const std::string& host) { 37 net::X509Certificate* cert, const std::string& host) {
39 return ssl_host_state_->QueryPolicy(cert, host); 38 return ssl_host_state_->QueryPolicy(cert, host);
40 } 39 }
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.h ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698