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

Side by Side Diff: content/browser/ssl/ssl_policy.h

Issue 2226523002: Add separate plumbing for subresources with certificate errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 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
« no previous file with comments | « content/browser/ssl/ssl_manager.cc ('k') | content/browser/ssl/ssl_policy.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) 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 #ifndef CONTENT_BROWSER_SSL_SSL_POLICY_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_POLICY_H_
6 #define CONTENT_BROWSER_SSL_SSL_POLICY_H_ 6 #define CONTENT_BROWSER_SSL_SSL_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 // SSL trust indicators. It relies on the SSLPolicyBackend to actually enact 27 // SSL trust indicators. It relies on the SSLPolicyBackend to actually enact
28 // the decisions it reaches. 28 // the decisions it reaches.
29 // 29 //
30 class SSLPolicy { 30 class SSLPolicy {
31 public: 31 public:
32 explicit SSLPolicy(SSLPolicyBackend* backend); 32 explicit SSLPolicy(SSLPolicyBackend* backend);
33 33
34 // An error occurred with the certificate in an SSL connection. 34 // An error occurred with the certificate in an SSL connection.
35 void OnCertError(SSLCertErrorHandler* handler); 35 void OnCertError(SSLCertErrorHandler* handler);
36 36
37 // Updates the policy backend to reflect that |security_origin| has
38 // run content loaded over a nonsecure (HTTP) connection.
37 void DidRunInsecureContent(NavigationEntryImpl* entry, 39 void DidRunInsecureContent(NavigationEntryImpl* entry,
38 const GURL& security_origin); 40 const GURL& security_origin);
39 41
42 // Updates the policy backend to reflect that |security_origin| has
43 // run content loaded over HTTPS with certificate errors.
44 void DidRunContentWithCertificateErrors(NavigationEntryImpl* entry,
45 const GURL& security_origin);
46
40 // We have started a resource request for |url| with the given |cert_id| and 47 // We have started a resource request for |url| with the given |cert_id| and
41 // |cert_status|. 48 // |cert_status|.
42 void OnRequestStarted(const GURL& url, 49 void OnRequestStarted(const GURL& url,
43 int cert_id, 50 int cert_id,
44 net::CertStatus cert_status); 51 net::CertStatus cert_status);
45 52
46 // Update the SSL information in |entry| to match the current state. 53 // Update the SSL information in |entry| to match the current state.
47 // |web_contents| is the WebContents associated with this entry. 54 // |web_contents| is the WebContents associated with this entry.
48 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents); 55 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents);
49 56
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 95
89 // The backend we use to enact our decisions. 96 // The backend we use to enact our decisions.
90 SSLPolicyBackend* backend_; 97 SSLPolicyBackend* backend_;
91 98
92 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); 99 DISALLOW_COPY_AND_ASSIGN(SSLPolicy);
93 }; 100 };
94 101
95 } // namespace content 102 } // namespace content
96 103
97 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ 104 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_manager.cc ('k') | content/browser/ssl/ssl_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698