OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_KNOWN_LOGS_H_ | 5 #ifndef NET_CERT_CT_KNOWN_LOGS_H_ |
6 #define NET_CERT_CT_KNOWN_LOGS_H_ | 6 #define NET_CERT_CT_KNOWN_LOGS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class CTLogVerifier; | 17 class CTLogVerifier; |
18 | 18 |
19 namespace ct { | 19 namespace ct { |
20 | 20 |
21 #if !defined(OS_NACL) | 21 #if !defined(OS_NACL) |
22 // CreateLogVerifiersForKnownLogs returns a vector of CT logs for all the known | 22 // CreateLogVerifiersForKnownLogs returns a vector of CT logs for all the known |
23 // and trusted logs. | 23 // and trusted logs. |
24 NET_EXPORT std::vector<scoped_refptr<CTLogVerifier>> | 24 NET_EXPORT std::vector<scoped_refptr<const CTLogVerifier>> |
25 CreateLogVerifiersForKnownLogs(); | 25 CreateLogVerifiersForKnownLogs(); |
26 #endif | 26 #endif |
27 | 27 |
28 NET_EXPORT bool IsLogOperatedByGoogle(base::StringPiece log_id); | 28 NET_EXPORT bool IsLogOperatedByGoogle(base::StringPiece log_id); |
29 | 29 |
30 } // namespace ct | 30 } // namespace ct |
31 | 31 |
32 } // namespace net | 32 } // namespace net |
33 | 33 |
34 #endif // NET_CERT_CT_KNOWN_LOGS_H_ | 34 #endif // NET_CERT_CT_KNOWN_LOGS_H_ |
OLD | NEW |