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

Side by Side Diff: net/traffic_annotation/network_traffic_annotation.h

Issue 2890293005: Network traffic annotation stored in url_request. (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/test/app/signin_test_util.mm ('k') | net/url_request/test_url_fetcher_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_H_ 5 #ifndef NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_H_
6 #define NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_H_ 6 #define NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 // Defined type for network traffic annotation tags. 10 // Defined type for network traffic annotation tags.
(...skipping 19 matching lines...) Expand all
30 constexpr NetworkTrafficAnnotationTag DefineNetworkTrafficAnnotation( 30 constexpr NetworkTrafficAnnotationTag DefineNetworkTrafficAnnotation(
31 const char (&unique_id)[N1], 31 const char (&unique_id)[N1],
32 const char (&proto)[N2]) { 32 const char (&proto)[N2]) {
33 return unique_id; 33 return unique_id;
34 } 34 }
35 35
36 } // namespace net 36 } // namespace net
37 37
38 // Placeholder for unannotated usages. 38 // Placeholder for unannotated usages.
39 #define NO_TRAFFIC_ANNOTATION_YET \ 39 #define NO_TRAFFIC_ANNOTATION_YET \
40 net::DefineNetworkTrafficAnnotation("Undefined", "Nothing here yet.") 40 net::DefineNetworkTrafficAnnotation("undefined", "Nothing here yet.")
41
42 #define MISSING_TRAFFIC_ANNOTATION \
43 net::DefineNetworkTrafficAnnotation( \
44 "missing", "Function called without traffic annotation.")
41 45
42 #endif // NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_H_ 46 #endif // NET_TRAFFIC_ANNOTATION_NETWORK_TRAFFIC_ANNOTATION_H_
OLDNEW
« no previous file with comments | « ios/chrome/test/app/signin_test_util.mm ('k') | net/url_request/test_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698