| 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 #include "net/tools/domain_security_preload_generator/pinsets.h" | 5 #include "net/tools/transport_security_state_generator/pinsets.h" |
| 6 | 6 |
| 7 #include "net/tools/domain_security_preload_generator/spki_hash.h" | 7 #include "net/tools/transport_security_state_generator/spki_hash.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| 11 namespace transport_security_state { | 11 namespace transport_security_state { |
| 12 | 12 |
| 13 Pinsets::Pinsets() {} | 13 Pinsets::Pinsets() {} |
| 14 | 14 |
| 15 Pinsets::~Pinsets() {} | 15 Pinsets::~Pinsets() {} |
| 16 | 16 |
| 17 void Pinsets::RegisterSPKIHash(base::StringPiece name, const SPKIHash& hash) { | 17 void Pinsets::RegisterSPKIHash(base::StringPiece name, const SPKIHash& hash) { |
| 18 spki_hashes_.insert(std::pair<std::string, SPKIHash>(name.as_string(), hash)); | 18 spki_hashes_.insert(std::pair<std::string, SPKIHash>(name.as_string(), hash)); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void Pinsets::RegisterPinset(std::unique_ptr<Pinset> pinset) { | 21 void Pinsets::RegisterPinset(std::unique_ptr<Pinset> pinset) { |
| 22 pinsets_.insert(std::pair<std::string, std::unique_ptr<Pinset>>( | 22 pinsets_.insert(std::pair<std::string, std::unique_ptr<Pinset>>( |
| 23 pinset->name(), std::move(pinset))); | 23 pinset->name(), std::move(pinset))); |
| 24 } | 24 } |
| 25 | 25 |
| 26 } // namespace transport_security_state | 26 } // namespace transport_security_state |
| 27 | 27 |
| 28 } // namespace net | 28 } // namespace net |
| OLD | NEW |