| 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/pinset.h" | 5 #include "net/tools/transport_security_state_generator/pinset.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 namespace transport_security_state { | 9 namespace transport_security_state { |
| 10 | 10 |
| 11 Pinset::Pinset(std::string name, std::string report_uri) | 11 Pinset::Pinset(std::string name, std::string report_uri) |
| 12 : name_(name), report_uri_(report_uri) {} | 12 : name_(name), report_uri_(report_uri) {} |
| 13 | 13 |
| 14 Pinset::~Pinset() {} | 14 Pinset::~Pinset() {} |
| 15 | 15 |
| 16 void Pinset::AddStaticSPKIHash(const std::string& hash_name) { | 16 void Pinset::AddStaticSPKIHash(const std::string& hash_name) { |
| 17 static_spki_hashes_.push_back(hash_name); | 17 static_spki_hashes_.push_back(hash_name); |
| 18 } | 18 } |
| 19 | 19 |
| 20 void Pinset::AddBadStaticSPKIHash(const std::string& hash_name) { | 20 void Pinset::AddBadStaticSPKIHash(const std::string& hash_name) { |
| 21 bad_static_spki_hashes_.push_back(hash_name); | 21 bad_static_spki_hashes_.push_back(hash_name); |
| 22 } | 22 } |
| 23 | 23 |
| 24 } // namespace transport_security_state | 24 } // namespace transport_security_state |
| 25 | 25 |
| 26 } // namespace net | 26 } // namespace net |
| OLD | NEW |