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