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

Unified Diff: components/certificate_transparency/log_response_parser.h

Issue 1100003006: Certificate Transparency: Fetching of Signed Tree Heads (DRAFT) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revised design, addressed some comments Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698