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

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

Issue 450833002: Add additional UMA stats for remembering certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes from felt comments Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/frame_host/navigation_controller_impl.h" 7 #include "content/browser/frame_host/navigation_controller_impl.h"
8 #include "content/browser/ssl/ssl_host_state.h" 8 #include "content/browser/ssl/ssl_host_state.h"
9 #include "content/public/browser/browser_context.h" 9 #include "content/public/browser/browser_context.h"
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 void SSLPolicyBackend::AllowCertForHost(net::X509Certificate* cert, 35 void SSLPolicyBackend::AllowCertForHost(net::X509Certificate* cert,
36 const std::string& host, 36 const std::string& host,
37 net::CertStatus error) { 37 net::CertStatus error) {
38 ssl_host_state_->AllowCertForHost(cert, host, error); 38 ssl_host_state_->AllowCertForHost(cert, host, error);
39 } 39 }
40 40
41 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy( 41 net::CertPolicy::Judgment SSLPolicyBackend::QueryPolicy(
42 net::X509Certificate* cert, 42 net::X509Certificate* cert,
43 const std::string& host, 43 const std::string& host,
44 net::CertStatus error) { 44 net::CertStatus error,
45 return ssl_host_state_->QueryPolicy(cert, host, error); 45 bool* expired_previous_decision) {
46 return ssl_host_state_->QueryPolicy(
47 cert, host, error, expired_previous_decision);
46 } 48 }
47 49
48 } // namespace content 50 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698