| 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_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ | 5 #ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ |
| 6 #define NET_TOOLS_TRANSPORT_SECURITY_STATE_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/transport_security_state_generator/cert_util.h" | 14 #include "net/tools/transport_security_state_generator/cert_util.h" |
| 15 #include "net/tools/transport_security_state_generator/pinset.h" | 15 #include "net/tools/transport_security_state_generator/pinset.h" |
| 16 #include "net/tools/transport_security_state_generator/pinsets.h" | |
| 17 #include "net/tools/transport_security_state_generator/spki_hash.h" | 16 #include "net/tools/transport_security_state_generator/spki_hash.h" |
| 18 | 17 |
| 19 namespace net { | 18 namespace net { |
| 20 | 19 |
| 21 namespace transport_security_state { | 20 namespace transport_security_state { |
| 22 | 21 |
| 23 // Contains SPKIHashes and their names. The names are used to reference | 22 // Contains SPKIHashes and their names. The names are used to reference |
| 24 // the hashes from Pinset's. | 23 // the hashes from Pinset's. |
| 25 using SPKIHashMap = std::map<std::string, SPKIHash>; | 24 using SPKIHashMap = std::map<std::string, SPKIHash>; |
| 26 using PinsetMap = std::map<std::string, std::unique_ptr<Pinset>>; | 25 using PinsetMap = std::map<std::string, std::unique_ptr<Pinset>>; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 47 PinsetMap pinsets_; | 46 PinsetMap pinsets_; |
| 48 | 47 |
| 49 DISALLOW_COPY_AND_ASSIGN(Pinsets); | 48 DISALLOW_COPY_AND_ASSIGN(Pinsets); |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 } // namespace transport_security_state | 51 } // namespace transport_security_state |
| 53 | 52 |
| 54 } // namespace net | 53 } // namespace net |
| 55 | 54 |
| 56 #endif // NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ | 55 #endif // NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_PINSETS_H_ |
| OLD | NEW |