Switch some page set from user_agent fields to coresponding shared_state classes
[chromium-blink-merge.git] / net / cert / ct_known_logs.cc
blob8e7106485d88ddc0fcc612b35e1642991cbd91f8
1 // Copyright 2013 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.
5 #include "net/cert/ct_known_logs.h"
7 #include <string>
9 #include "base/macros.h"
10 #include "base/strings/string_piece.h"
11 #include "net/cert/ct_known_logs_static.h"
12 #include "net/cert/ct_log_verifier.h"
14 namespace net {
16 namespace ct {
18 ScopedVector<CTLogVerifier> CreateLogVerifiersForKnownLogs() {
19 ScopedVector<CTLogVerifier> verifiers;
20 for (size_t i = 0; i < arraysize(kCTLogList); ++i) {
21 const CTLogInfo& log(kCTLogList[i]);
22 base::StringPiece key(log.log_key, arraysize(log.log_key) - 1);
24 verifiers.push_back(
25 CTLogVerifier::Create(key, log.log_name, log.log_url).release());
28 return verifiers.Pass();
31 } // namespace ct
33 } // namespace net