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

Unified Diff: content/public/browser/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, 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/ssl_host_state_delegate.h
diff --git a/content/public/browser/ssl_host_state_delegate.h b/content/public/browser/ssl_host_state_delegate.h
index 5324a999c8fd2adcae731cc6258bb1026d2c8468..19eedce8246dd7066417ec13ef90d60d6984b938 100644
--- a/content/public/browser/ssl_host_state_delegate.h
+++ b/content/public/browser/ssl_host_state_delegate.h
@@ -7,6 +7,7 @@
#include <memory>
+#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
#include "content/common/content_export.h"
@@ -51,8 +52,10 @@ class SSLHostStateDelegate {
const net::X509Certificate& cert,
net::CertStatus error) = 0;
- // Clear all allow preferences.
- virtual void Clear() = 0;
+ // Clear allow preferences matched by |host_filter|. If the filter is null,
+ // clear all preferences.
+ virtual void Clear(
+ const base::Callback<bool(const std::string&)>& host_filter) = 0;
// Queries whether |cert| is allowed for |host| and |error|. Returns true in
// |expired_previous_decision| if a previous user decision expired immediately

Powered by Google App Engine
This is Rietveld 408576698