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