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

Side by Side Diff: chrome/browser/ssl/chrome_ssl_host_state_delegate.h

Issue 2292443003: Support host-based deletion for SSLHostStateDelegate (Closed)
Patch Set: Revert changes in ContentSettingPattern, convert pattern directly to URL Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DELEGATE_H_
6 #define CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DELEGATE_H_ 6 #define CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 15 matching lines...) Expand all
26 // for a particular length of time. 26 // for a particular length of time.
27 class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate { 27 class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
28 public: 28 public:
29 explicit ChromeSSLHostStateDelegate(Profile* profile); 29 explicit ChromeSSLHostStateDelegate(Profile* profile);
30 ~ChromeSSLHostStateDelegate() override; 30 ~ChromeSSLHostStateDelegate() override;
31 31
32 // SSLHostStateDelegate: 32 // SSLHostStateDelegate:
33 void AllowCert(const std::string& host, 33 void AllowCert(const std::string& host,
34 const net::X509Certificate& cert, 34 const net::X509Certificate& cert,
35 net::CertStatus error) override; 35 net::CertStatus error) override;
36 void Clear() override; 36 void Clear(
37 const base::Callback<bool(const std::string&)>& host_filter) override;
37 CertJudgment QueryPolicy(const std::string& host, 38 CertJudgment QueryPolicy(const std::string& host,
38 const net::X509Certificate& cert, 39 const net::X509Certificate& cert,
39 net::CertStatus error, 40 net::CertStatus error,
40 bool* expired_previous_decision) override; 41 bool* expired_previous_decision) override;
41 void HostRanInsecureContent(const std::string& host, 42 void HostRanInsecureContent(const std::string& host,
42 int child_id, 43 int child_id,
43 InsecureContentType content_type) override; 44 InsecureContentType content_type) override;
44 bool DidHostRunInsecureContent( 45 bool DidHostRunInsecureContent(
45 const std::string& host, 46 const std::string& host,
46 int child_id, 47 int child_id,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // should be removed after the experiment has finished, and a call to Clear() 145 // should be removed after the experiment has finished, and a call to Clear()
145 // should be added to the constructor and destructor for members of the 146 // should be added to the constructor and destructor for members of the
146 // FORGET_SSL_EXCEPTION_DECISIONS_AT_SESSION_END groups. See 147 // FORGET_SSL_EXCEPTION_DECISIONS_AT_SESSION_END groups. See
147 // https://crbug.com/418631 for more details. 148 // https://crbug.com/418631 for more details.
148 const std::string current_expiration_guid_; 149 const std::string current_expiration_guid_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(ChromeSSLHostStateDelegate); 151 DISALLOW_COPY_AND_ASSIGN(ChromeSSLHostStateDelegate);
151 }; 152 };
152 153
153 #endif // CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DELEGATE_H_ 154 #endif // CHROME_BROWSER_SSL_CHROME_SSL_HOST_STATE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698