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

Side by Side Diff: net/cert/ct_log_response_parser.h

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small type fixes Created 6 years, 8 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
« no previous file with comments | « no previous file | net/cert/ct_log_response_parser.cc » ('j') | net/cert/ct_log_response_parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef NET_CERT_CT_LOG_RESPONSE_PARSER_H_
6 #define NET_CERT_CT_LOG_RESPONSE_PARSER_H_
7
8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h"
10
11 namespace net {
12
13 namespace ct {
14 struct SignedTreeHead;
15
16 // A class for decoding Certificate Transparency logs' JSON replies.
17 class NET_EXPORT CTLogResponseParser {
18 public:
19 // Fills in |sth| from its JSON representation in |json_sth|.
20 // Returns true and fills in |sth| if all fields are present and valid.
21 // Otherwise, returns false and does not modify |sth|.
22 static bool FillSignedTreeHead(const base::StringPiece& json_sth,
Ryan Sleevi 2014/04/09 18:23:11 Style: Classes with just a static method are gener
Eran Messeri 2014/04/10 21:08:29 Done and done.
23 SignedTreeHead* sth);
24 };
25
26 } // namespace ct
27
28 } // namespace net
29 #endif // NET_CERT_CT_LOG_RESPONSE_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/ct_log_response_parser.cc » ('j') | net/cert/ct_log_response_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698