Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: net/tools/domain_security_preload_generator/pinset.cc

Issue 2551153003: Add static domain security state generator tool. (Closed)
Patch Set: fix base64 issue and accidental replace. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/pinset.h"
6
7 namespace net {
8
9 Pinset::Pinset(std::string name, std::string report_uri)
10 : name_(name), report_uri_(report_uri) {}
11
12 Pinset::~Pinset() {}
13
14 void Pinset::AddStaticSPKIHash(const std::string& hash_name) {
15 static_spki_hashes_.push_back(hash_name);
16 }
17
18 void Pinset::AddBadStaticSPKIHash(const std::string& hash_name) {
19 bad_static_spki_hashes_.push_back(hash_name);
20 }
21
22 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698