Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / net / cert / ct_log_response_parser.h
blobb7a012bde05f49603e64e2d830398f27596e4aea
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.
5 #ifndef NET_CERT_CT_LOG_RESPONSE_PARSER_H_
6 #define NET_CERT_CT_LOG_RESPONSE_PARSER_H_
8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h"
11 namespace base {
12 class Value;
13 } // namespace base
15 namespace net {
17 namespace ct {
18 struct SignedTreeHead;
20 // Fills in |signed_tree_head| from its JSON representation in
21 // |json_signed_tree_head|.
22 // Returns true and fills in |signed_tree_head| if all fields are present and
23 // valid.Otherwise, returns false and does not modify |signed_tree_head|.
24 NET_EXPORT bool FillSignedTreeHead(const base::Value& json_signed_tree_head,
25 SignedTreeHead* signed_tree_head);
27 } // namespace ct
29 } // namespace net
30 #endif // NET_CERT_CT_LOG_RESPONSE_PARSER_H_