| 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 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_ |
| OLD | NEW |