| Index: net/tools/domain_security_preload_generator/pinsets.cc
|
| diff --git a/net/tools/domain_security_preload_generator/pinsets.cc b/net/tools/domain_security_preload_generator/pinsets.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c3ce5db814455d64acb14b458b2350bacc0a66ea
|
| --- /dev/null
|
| +++ b/net/tools/domain_security_preload_generator/pinsets.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/tools/domain_security_preload_generator/pinsets.h"
|
| +
|
| +#include "net/tools/domain_security_preload_generator/spki_hash.h"
|
| +
|
| +namespace net {
|
| +
|
| +Pinsets::Pinsets() {}
|
| +
|
| +Pinsets::~Pinsets() {}
|
| +
|
| +void Pinsets::RegisterSPKIHash(base::StringPiece name, const SPKIHash& hash) {
|
| + spki_hashes_.insert(std::pair<std::string, SPKIHash>(name.as_string(), hash));
|
| +}
|
| +
|
| +void Pinsets::RegisterPinset(std::unique_ptr<Pinset> pinset) {
|
| + pinsets_.insert(std::pair<std::string, std::unique_ptr<Pinset>>(
|
| + pinset->name(), std::move(pinset)));
|
| +}
|
| +
|
| +} // namespace net
|
|
|