Index: components/certificate_transparency/log_response_parser.h |
diff --git a/components/certificate_transparency/log_response_parser.h b/components/certificate_transparency/log_response_parser.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..768bb1875a4805486dc39dde373ee262e8935bf5 |
--- /dev/null |
+++ b/components/certificate_transparency/log_response_parser.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_CERTIFICATE_TRANSPARENCY_LOG_RESPONSE_PARSER_H_ |
+#define COMPONENTS_CERTIFICATE_TRANSPARENCY_LOG_RESPONSE_PARSER_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "base/strings/string_piece.h" |
+ |
+namespace base { |
+class Value; |
+} // namespace base |
+ |
+namespace net { |
+ |
+namespace ct { |
+struct SignedTreeHead; |
+} // namespace ct |
+ |
+} // namespace net |
+ |
+namespace certificate_transparency { |
+ |
+class CTLogResponseParser { |
+ public: |
+ // Extracts STH from the JSON struct |
+ static bool FillSignedTreeHead(scoped_ptr<base::Value> json, |
+ net::ct::SignedTreeHead* sth); |
+}; |
+ |
+} // namespace certificate_transparency |
+ |
+#endif |