OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 COMPONENTS_CERTIFICATE_TRANSPARENCY_LOG_RESPONSE_PARSER_H_ |
| 6 #define COMPONENTS_CERTIFICATE_TRANSPARENCY_LOG_RESPONSE_PARSER_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_piece.h" |
| 10 |
| 11 namespace base { |
| 12 class Value; |
| 13 } // namespace base |
| 14 |
| 15 namespace net { |
| 16 |
| 17 namespace ct { |
| 18 struct SignedTreeHead; |
| 19 } // namespace ct |
| 20 |
| 21 } // namespace net |
| 22 |
| 23 namespace certificate_transparency { |
| 24 |
| 25 class CTLogResponseParser { |
| 26 public: |
| 27 // Extracts STH from the JSON struct |
| 28 static bool FillSignedTreeHead(scoped_ptr<base::Value> json, |
| 29 net::ct::SignedTreeHead* sth); |
| 30 }; |
| 31 |
| 32 } // namespace certificate_transparency |
| 33 |
| 34 #endif |
OLD | NEW |