| 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 Pinsets::Pinsets() {} |
| 12 |
| 13 Pinsets::~Pinsets() {} |
| 14 |
| 15 void Pinsets::RegisterSPKIHash(base::StringPiece name, const SPKIHash& hash) { |
| 16 spki_hashes_.insert(std::pair<std::string, SPKIHash>(name.as_string(), hash)); |
| 17 } |
| 18 |
| 19 void Pinsets::RegisterPinset(std::unique_ptr<Pinset> pinset) { |
| 20 pinsets_.insert(std::pair<std::string, std::unique_ptr<Pinset>>( |
| 21 pinset->name(), std::move(pinset))); |
| 22 } |
| 23 |
| 24 } // namespace net |
| OLD | NEW |