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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_
6 #define CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h"
11 #include "net/cert/x509_certificate.h"
12
13 class GURL;
14
15 namespace content {
16
17 // SSLHostStateDecisions must be implemented by the embedder, to provide the
18 // storage strategy (if any) for certificate decisions.
19 class CONTENT_EXPORT SSLHostStateDecisions
20 : 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
21 public:
22 virtual void DenyCert(const GURL& url,
23 net::X509Certificate* cert,
24 net::CertStatus error) = 0;
25 virtual void AllowCert(const GURL& url,
26 net::X509Certificate* cert,
27 net::CertStatus error) = 0;
28 virtual void Clear() = 0;
29 virtual net::CertPolicy::Judgment QueryPolicy(const GURL& url,
30 net::X509Certificate* cert,
31 net::CertStatus error) = 0;
32 virtual void RevokeAllowAndDenyPreferences(const GURL& url) = 0;
33 virtual bool HasAllowedOrDeniedCert(const GURL& url) = 0;
34
35 protected:
36 virtual ~SSLHostStateDecisions() {}
37
38 private:
39 friend class base::RefCountedThreadSafe<SSLHostStateDecisions>;
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_SSL_HOST_STATE_DECISIONS_H_
OLDNEW
« 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