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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 NET_TOOLS_CT_MAPPER_ENTRY_READER_H_
6 #define NET_TOOLS_CT_MAPPER_ENTRY_READER_H_
7
8 #include <memory>
9
10 #include "base/files/file_path.h"
11 #include "net/tools/ct_mapper/entry_reader.h"
12
13 namespace net {
14
15 class Entry;
16
17 class EntryReader {
18 public:
19 virtual ~EntryReader() {}
20
21 // Reads up to max_entries and fills them in |entries|.
22 virtual bool Read(std::vector<Entry>* entries, size_t max_entries) = 0;
23
24 // Returns a number in the range 0-1.
25 virtual double GetProgress() const = 0;
26 };
27
28 std::unique_ptr<EntryReader> CreateEntryReaderForCertificateTransparencyDb(
29 const base::FilePath& path);
30
31 } // namespace net
32
33 #endif // NET_TOOLS_CT_MAPPER_ENTRY_READER_H_
OLDNEW
« 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