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

Side by Side Diff: net/cert/ct_signed_certificate_timestamp_log_param.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Adding includes to files that were "include-hidden" by "net_log.h". Created 4 years, 2 months 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/cert/ct_signed_certificate_timestamp_log_param.h" 5 #include "net/cert/ct_signed_certificate_timestamp_log_param.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 #include <string>
10 #include <utility> 9 #include <utility>
11 10
12 #include "base/base64.h" 11 #include "base/base64.h"
13 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
15 #include "base/values.h" 14 #include "base/values.h"
16 #include "net/cert/ct_sct_to_string.h" 15 #include "net/cert/ct_sct_to_string.h"
17 #include "net/cert/ct_verify_result.h" 16 #include "net/cert/ct_verify_result.h"
18 #include "net/cert/signed_certificate_timestamp.h" 17 #include "net/cert/signed_certificate_timestamp.h"
18 #include "net/log/net_log_capture_mode.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 namespace { 22 namespace {
23 23
24 // Base64 encode the given |value| string and put it in |dict| with the 24 // Base64 encode the given |value| string and put it in |dict| with the
25 // description |key|. 25 // description |key|.
26 void SetBinaryData( 26 void SetBinaryData(
27 const char* key, 27 const char* key,
28 const std::string& value, 28 const std::string& value,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 SetBinaryData("embedded_scts", *embedded_scts, dict.get()); 95 SetBinaryData("embedded_scts", *embedded_scts, dict.get());
96 SetBinaryData("scts_from_ocsp_response", *sct_list_from_ocsp, dict.get()); 96 SetBinaryData("scts_from_ocsp_response", *sct_list_from_ocsp, dict.get());
97 SetBinaryData("scts_from_tls_extension", *sct_list_from_tls_extension, 97 SetBinaryData("scts_from_tls_extension", *sct_list_from_tls_extension,
98 dict.get()); 98 dict.get());
99 99
100 return std::move(dict); 100 return std::move(dict);
101 } 101 }
102 102
103 } // namespace net 103 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698