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

Unified Diff: net/tools/domain_security_preload_generator/pinset.cc

Issue 2551153003: Add static domain security state generator tool. (Closed)
Patch Set: Fix iOS? 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 side-by-side diff with in-line comments
Download patch
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..1b35123a092003403cf16c5826d03df18aecefdb
--- /dev/null
+++ b/net/tools/domain_security_preload_generator/pinset.cc
@@ -0,0 +1,26 @@
+// 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 {
+
+namespace transport_security_state {
+
+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 transport_security_state
+
+} // namespace net
« no previous file with comments | « net/tools/domain_security_preload_generator/pinset.h ('k') | net/tools/domain_security_preload_generator/pinsets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698