| Index: net/tools/domain_security_preload_generator/pinset.cc
|
| diff --git a/net/tools/domain_security_preload_generator/pinset.cc b/net/tools/domain_security_preload_generator/pinset.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4433749ec645bb6c5b5616661d2b84d034d341ae
|
| --- /dev/null
|
| +++ b/net/tools/domain_security_preload_generator/pinset.cc
|
| @@ -0,0 +1,22 @@
|
| +// 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/pinset.h"
|
| +
|
| +namespace net {
|
| +
|
| +Pinset::Pinset(std::string name, std::string report_uri)
|
| + : name_(name), report_uri_(report_uri) {}
|
| +
|
| +Pinset::~Pinset() {}
|
| +
|
| +void Pinset::AddStaticSPKIHash(const std::string& hash_name) {
|
| + static_spki_hashes_.push_back(hash_name);
|
| +}
|
| +
|
| +void Pinset::AddBadStaticSPKIHash(const std::string& hash_name) {
|
| + bad_static_spki_hashes_.push_back(hash_name);
|
| +}
|
| +
|
| +} // namespace net
|
|
|