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

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

Issue 2226363002: Track subresources with cert errors separately from mixed content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments 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 20 matching lines...) Expand all
31 class SSLPolicy { 31 class SSLPolicy {
32 public: 32 public:
33 explicit SSLPolicy(SSLPolicyBackend* backend); 33 explicit SSLPolicy(SSLPolicyBackend* backend);
34 34
35 // An error occurred with the certificate in an SSL connection. 35 // An error occurred with the certificate in an SSL connection.
36 void OnCertError(std::unique_ptr<SSLErrorHandler> handler); 36 void OnCertError(std::unique_ptr<SSLErrorHandler> handler);
37 37
38 void DidRunInsecureContent(NavigationEntryImpl* entry, 38 void DidRunInsecureContent(NavigationEntryImpl* entry,
39 const GURL& security_origin); 39 const GURL& security_origin);
40 40
41 void DidRunContentWithCertErrors(NavigationEntryImpl* entry,
42 const GURL& security_origin);
43
41 // We have started a resource request for |url| with the given |cert_id| and 44 // We have started a resource request for |url| with the given |cert_id| and
42 // |cert_status|. 45 // |cert_status|.
43 void OnRequestStarted(const GURL& url, 46 void OnRequestStarted(const GURL& url,
44 int cert_id, 47 int cert_id,
45 net::CertStatus cert_status); 48 net::CertStatus cert_status);
46 49
47 // Update the SSL information in |entry| to match the current state. 50 // Update the SSL information in |entry| to match the current state.
48 // |web_contents| is the WebContents associated with this entry. 51 // |web_contents| is the WebContents associated with this entry.
49 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents); 52 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents);
50 53
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 86
84 // The backend we use to enact our decisions. 87 // The backend we use to enact our decisions.
85 SSLPolicyBackend* backend_; 88 SSLPolicyBackend* backend_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicy);
88 }; 91 };
89 92
90 } // namespace content 93 } // namespace content
91 94
92 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ 95 #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