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

Side by Side Diff: net/tools/ct_mapper/visitor.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/sync-ct-database.sh ('k') | net/tools/ct_mapper/write_results.h » ('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_VISITOR_H_
6 #define NET_TOOLS_CT_MAPPER_VISITOR_H_
7
8 #include <map>
9 #include <memory>
10
11 #include "base/compiler_specific.h"
12 #include "base/memory/ptr_util.h"
13
14 namespace net {
15
16 class Entry;
17 class Metrics;
18
19 class Visitor {
20 public:
21 virtual ~Visitor() {}
22 virtual void Start() {}
23 virtual void Visit(const Entry& entry, Metrics* metrics) = 0;
24 virtual void End() {}
25 };
26
27 class VisitorFactory {
28 public:
29 virtual ~VisitorFactory() {}
30 virtual std::unique_ptr<Visitor> Create() = 0;
31 };
32
33 } // namespace net
34
35 #endif // NET_TOOLS_CT_MAPPER_VISITOR_H_
OLDNEW
« no previous file with comments | « net/tools/ct_mapper/sync-ct-database.sh ('k') | net/tools/ct_mapper/write_results.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698