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

Unified Diff: net/tools/ct_mapper/entry_reader.h

Issue 1238413004: Framework for iterating over certificates in CT database from Chromium code. (not for review) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make samples page work Created 3 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
« no previous file with comments | « net/tools/ct_mapper/entry.cc ('k') | net/tools/ct_mapper/entry_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/ct_mapper/entry_reader.h
diff --git a/net/tools/ct_mapper/entry_reader.h b/net/tools/ct_mapper/entry_reader.h
new file mode 100644
index 0000000000000000000000000000000000000000..3627952728dbe52186d7d7b58f933b227dd0f303
--- /dev/null
+++ b/net/tools/ct_mapper/entry_reader.h
@@ -0,0 +1,33 @@
+// 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 NET_TOOLS_CT_MAPPER_ENTRY_READER_H_
+#define NET_TOOLS_CT_MAPPER_ENTRY_READER_H_
+
+#include <memory>
+
+#include "base/files/file_path.h"
+#include "net/tools/ct_mapper/entry_reader.h"
+
+namespace net {
+
+class Entry;
+
+class EntryReader {
+ public:
+ virtual ~EntryReader() {}
+
+ // Reads up to max_entries and fills them in |entries|.
+ virtual bool Read(std::vector<Entry>* entries, size_t max_entries) = 0;
+
+ // Returns a number in the range 0-1.
+ virtual double GetProgress() const = 0;
+};
+
+std::unique_ptr<EntryReader> CreateEntryReaderForCertificateTransparencyDb(
+ const base::FilePath& path);
+
+} // namespace net
+
+#endif // NET_TOOLS_CT_MAPPER_ENTRY_READER_H_
« no previous file with comments | « net/tools/ct_mapper/entry.cc ('k') | net/tools/ct_mapper/entry_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698