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

Unified Diff: content/public/browser/ssl_host_state_decisions.h

Issue 369703002: Remember user decisions on invalid certificates behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More changes from felt Created 6 years, 5 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/ssl_host_state_decisions.h
diff --git a/content/public/browser/ssl_host_state_decisions.h b/content/public/browser/ssl_host_state_decisions.h
new file mode 100644
index 0000000000000000000000000000000000000000..01d38d5d3647ea796927cd041f4a1123b28c5194
--- /dev/null
+++ b/content/public/browser/ssl_host_state_decisions.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_
+#define CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+#include "net/cert/x509_certificate.h"
+
+class GURL;
+
+namespace content {
+
+// SSLHostStateDecisions must be implemented by the embedder, to provide the
+// storage strategy (if any) for certificate decisions.
+class CONTENT_EXPORT SSLHostStateDecisions
+ : public base::RefCountedThreadSafe<SSLHostStateDecisions> {
Ryan Sleevi 2014/07/08 23:53:29 In general, I like to push back against introducin
jww 2014/07/11 00:08:42 So I'm pretty sure ownership transfer is out of th
Ryan Sleevi 2014/07/11 00:48:49 Except with RefCounting, you're always (potentiall
jww 2014/07/11 01:52:07 Ha. Looking again, I don't ever even assign it to
+ public:
+ virtual void DenyCert(const GURL& url,
+ net::X509Certificate* cert,
+ net::CertStatus error) = 0;
+ virtual void AllowCert(const GURL& url,
+ net::X509Certificate* cert,
+ net::CertStatus error) = 0;
+ virtual void Clear() = 0;
+ virtual net::CertPolicy::Judgment QueryPolicy(const GURL& url,
+ net::X509Certificate* cert,
+ net::CertStatus error) = 0;
+ virtual void RevokeAllowAndDenyPreferences(const GURL& url) = 0;
+ virtual bool HasAllowedOrDeniedCert(const GURL& url) = 0;
+
+ protected:
+ virtual ~SSLHostStateDecisions() {}
+
+ private:
+ friend class base::RefCountedThreadSafe<SSLHostStateDecisions>;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698