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

Side by Side Diff: chrome/browser/net/traffic_annotation/network_traffic_annotation_checker.h

Issue 2866183003: Syntax and coverage checking added to Network Traffic Annotations. (Closed)
Patch Set: Protobuf build updated. Created 3 years, 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2017 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 CHROME_BROWSER_NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_CHECKER _H_
6 #define CHROME_BROWSER_NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_CHECKER _H_
7
8 #include <map>
9
10 #include "net/traffic_annotation/network_traffic_annotation.h"
11
12 class NetworkTrafficAnnotationChecker {
13 public:
14 NetworkTrafficAnnotationChecker();
15 ~NetworkTrafficAnnotationChecker();
16
17 void CheckAnnotation(
18 const net::NetworkTrafficAnnotationTag& traffic_annotation);
19
20 private:
21 std::map<const char*, const char*> visited_annotations_;
22 };
23
24 #endif // CHROME_BROWSER_NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_CHEC KER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698