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

Side by Side Diff: net/tools/domain_security_preload_generator/pinsets.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 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/pinsets.h"
6
7 #include "net/tools/domain_security_preload_generator/spki_hash.h"
8
9 namespace net {
10
11 namespace transport_security_state {
12
13 Pinsets::Pinsets() {}
14
15 Pinsets::~Pinsets() {}
16
17 void Pinsets::RegisterSPKIHash(base::StringPiece name, const SPKIHash& hash) {
18 spki_hashes_.insert(std::pair<std::string, SPKIHash>(name.as_string(), hash));
19 }
20
21 void Pinsets::RegisterPinset(std::unique_ptr<Pinset> pinset) {
22 pinsets_.insert(std::pair<std::string, std::unique_ptr<Pinset>>(
23 pinset->name(), std::move(pinset)));
24 }
25
26 } // namespace transport_security_state
27
28 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698