| 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_MAPPER_H_ |
| 6 #define NET_TOOLS_CT_MAPPER_MAPPER_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 #include "base/time/time.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 class EntryReader; |
| 14 class VisitorFactory; |
| 15 class Metrics; |
| 16 |
| 17 struct MapperOptions { |
| 18 // Initializes with default values. |
| 19 MapperOptions(); |
| 20 |
| 21 size_t num_samples_per_bucket; |
| 22 size_t num_threads; |
| 23 size_t chunk_size; |
| 24 size_t max_pending_chunks; |
| 25 base::TimeDelta max_elapsed_time; |
| 26 }; |
| 27 |
| 28 size_t ForEachEntry(EntryReader* reader, |
| 29 VisitorFactory* visitor_factory, |
| 30 const MapperOptions& options, |
| 31 Metrics* metrics); |
| 32 |
| 33 } // namespace net |
| 34 |
| 35 #endif // NET_TOOLS_CT_MAPPER_MAPPER_H_ |
| OLD | NEW |