| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_PINSETS_H_ | 5 #ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ |
| 6 #define NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_PINSETS_H_ | 6 #define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "net/tools/domain_security_preload_generator/cert_util.h" | 14 #include "net/tools/transport_security_state_generator/cert_util.h" |
| 15 #include "net/tools/domain_security_preload_generator/pinset.h" | 15 #include "net/tools/transport_security_state_generator/pinset.h" |
| 16 #include "net/tools/domain_security_preload_generator/pinsets.h" | 16 #include "net/tools/transport_security_state_generator/pinsets.h" |
| 17 #include "net/tools/domain_security_preload_generator/spki_hash.h" | 17 #include "net/tools/transport_security_state_generator/spki_hash.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 namespace transport_security_state { | 21 namespace transport_security_state { |
| 22 | 22 |
| 23 // Contains SPKIHashes and their names. The names are used to reference | 23 // Contains SPKIHashes and their names. The names are used to reference |
| 24 // the hashes from Pinset's. | 24 // the hashes from Pinset's. |
| 25 using SPKIHashMap = std::map<std::string, SPKIHash>; | 25 using SPKIHashMap = std::map<std::string, SPKIHash>; |
| 26 using PinsetMap = std::map<std::string, std::unique_ptr<Pinset>>; | 26 using PinsetMap = std::map<std::string, std::unique_ptr<Pinset>>; |
| 27 | 27 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 // Contains all pinsets in the input JSON file. | 46 // Contains all pinsets in the input JSON file. |
| 47 PinsetMap pinsets_; | 47 PinsetMap pinsets_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(Pinsets); | 49 DISALLOW_COPY_AND_ASSIGN(Pinsets); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace transport_security_state | 52 } // namespace transport_security_state |
| 53 | 53 |
| 54 } // namespace net | 54 } // namespace net |
| 55 | 55 |
| 56 #endif // NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_PINSETS_H_ | 56 #endif // NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ |
| OLD | NEW |