OLD | NEW |
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 COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_ | 5 #ifndef COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_ |
6 #define COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_ | 6 #define COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/macros.h" |
14 #include "base/version.h" | 15 #include "base/version.h" |
15 #include "net/cert/ct_ev_whitelist.h" | 16 #include "net/cert/ct_ev_whitelist.h" |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 class FilePath; | 19 class FilePath; |
19 } | 20 } |
20 | 21 |
21 namespace packed_ct_ev_whitelist { | 22 namespace packed_ct_ev_whitelist { |
22 | 23 |
23 // An implementation of the EVCertsWhitelist that gets its data packed using | 24 // An implementation of the EVCertsWhitelist that gets its data packed using |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 }; | 81 }; |
81 | 82 |
82 // Sets the EV certificate hashes whitelist in the SSLConfigService | 83 // Sets the EV certificate hashes whitelist in the SSLConfigService |
83 // to the provided |whitelist|, if valid. Otherwise, does nothing. | 84 // to the provided |whitelist|, if valid. Otherwise, does nothing. |
84 // To set the new whitelist, this function dispatches a task to the IO thread. | 85 // To set the new whitelist, this function dispatches a task to the IO thread. |
85 void SetEVCertsWhitelist(scoped_refptr<net::ct::EVCertsWhitelist> whitelist); | 86 void SetEVCertsWhitelist(scoped_refptr<net::ct::EVCertsWhitelist> whitelist); |
86 | 87 |
87 } // namespace packed_ct_ev_whitelist | 88 } // namespace packed_ct_ev_whitelist |
88 | 89 |
89 #endif // COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_ | 90 #endif // COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_ |
OLD | NEW |