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

Side by Side Diff: net/cert/ct_ev_whitelist.h

Issue 782333002: Certificate Transparency: Adding finch and NetLog logging for EV certs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in log_view_painter, update params description in netlog Created 6 years 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 NET_CERT_CT_EV_WHITELIST_H_ 5 #ifndef NET_CERT_CT_EV_WHITELIST_H_
6 #define NET_CERT_CT_EV_WHITELIST_H_ 6 #define NET_CERT_CT_EV_WHITELIST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/version.h"
Ryan Sleevi 2014/12/16 21:35:01 You don't need to include this; you can forward de
Eran Messeri 2014/12/17 16:19:31 Done.
11 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 namespace ct { 16 namespace ct {
16 17
17 class NET_EXPORT EVCertsWhitelist 18 class NET_EXPORT EVCertsWhitelist
18 : public base::RefCountedThreadSafe<EVCertsWhitelist> { 19 : public base::RefCountedThreadSafe<EVCertsWhitelist> {
19 public: 20 public:
20 // Returns true if the |certificate_hash| appears in the EV certificate hashes 21 // Returns true if the |certificate_hash| appears in the EV certificate hashes
21 // whitelist. 22 // whitelist.
22 virtual bool ContainsCertificateHash( 23 virtual bool ContainsCertificateHash(
23 const std::string& certificate_hash) const = 0; 24 const std::string& certificate_hash) const = 0;
24 25
25 // Returns true if the global EV certificate hashes whitelist is non-empty, 26 // Returns true if the global EV certificate hashes whitelist is non-empty,
26 // false otherwise. 27 // false otherwise.
27 virtual bool IsValid() const = 0; 28 virtual bool IsValid() const = 0;
28 29
30 // Returns the version of the whitelist in use
31 virtual base::Version Version() const = 0;
32
29 protected: 33 protected:
30 virtual ~EVCertsWhitelist() {} 34 virtual ~EVCertsWhitelist() {}
31 35
32 private: 36 private:
33 friend class base::RefCountedThreadSafe<EVCertsWhitelist>; 37 friend class base::RefCountedThreadSafe<EVCertsWhitelist>;
34 }; 38 };
35 39
36 } // namespace ct 40 } // namespace ct
37 41
38 } // namespace net 42 } // namespace net
39 43
40 #endif // NET_CERT_CT_EV_WHITELIST_H_ 44 #endif // NET_CERT_CT_EV_WHITELIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698