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 syntax = "proto3"; | 5 syntax = "proto3"; |
6 package traffic_annotation; | 6 package traffic_annotation; |
7 | 7 |
8 import "components/policy/cloud_policy_full_runtime.proto"; | 8 // cloud_policy_full_runtime.proto is a version of the following proto without |
| 9 // lite runtime optimization: |
| 10 // out/Debug/gen/components/policy/proto/cloud_policy.proto |
| 11 import "cloud_policy_full_runtime.proto"; |
9 | 12 |
10 // Describes a specific kind of network traffic based on a fine-grained | 13 // Describes a specific kind of network traffic based on a fine-grained |
11 // semantic classification of all network traffic generated by Chrome. | 14 // semantic classification of all network traffic generated by Chrome. |
12 // Used for auditing purposes. | 15 // Used for auditing purposes. |
13 message NetworkTrafficAnnotation { | 16 message NetworkTrafficAnnotation { |
14 // This is a globally unique identifier that must stay unchanged while the | 17 // This is a globally unique identifier that must stay unchanged while the |
15 // network request carries the same semantic meaning. If the network request | 18 // network request carries the same semantic meaning. If the network request |
16 // gets a new meaning, this ID needs to be changed. | 19 // gets a new meaning, this ID needs to be changed. |
17 // The purpose of this ID is to give humans a chance to reference | 20 // The purpose of this ID is to give humans a chance to reference |
18 // NetworkTrafficAnnotations externally even when those change a little bit | 21 // NetworkTrafficAnnotations externally even when those change a little bit |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 string cookies_store = 2; | 148 string cookies_store = 2; |
146 | 149 |
147 // Human readable description of how to enable/disable a feature that | 150 // Human readable description of how to enable/disable a feature that |
148 // triggers this network request by a user. Use “NA”, if no such setting | 151 // triggers this network request by a user. Use “NA”, if no such setting |
149 // exists (e.g. “Disable ‘Use a web service to help resolve spelling | 152 // exists (e.g. “Disable ‘Use a web service to help resolve spelling |
150 // errors.’ in Chrome’s settings under Advanced”). | 153 // errors.’ in Chrome’s settings under Advanced”). |
151 string setting = 3; | 154 string setting = 3; |
152 | 155 |
153 // Example policy configuration that disables this network request. | 156 // Example policy configuration that disables this network request. |
154 // This would be a text serialized protobuf of any enterprise policy. | 157 // This would be a text serialized protobuf of any enterprise policy. |
155 // see out/Debug/gen/components/policy/cloud_policy.proto | 158 // see out/Debug/gen/components/policy/proto/cloud_policy.proto |
156 repeated enterprise_management.CloudPolicySettings policy = 4; | 159 repeated enterprise_management.CloudPolicySettings policy = 4; |
157 | 160 |
158 // Justification for not having a policy that disables this feature. | 161 // Justification for not having a policy that disables this feature. |
159 string policy_exception_justification = 5; | 162 string policy_exception_justification = 5; |
160 } | 163 } |
161 | 164 |
162 TrafficPolicy policy = 4; | 165 TrafficPolicy policy = 4; |
163 }; | 166 }; |
164 | 167 |
165 // NetworkTrafficAnnotations that were extracted from the source code. | 168 // NetworkTrafficAnnotations that were extracted from the source code. |
166 message ExtractedNetworkTrafficAnnotation { | 169 message ExtractedNetworkTrafficAnnotation { |
167 repeated NetworkTrafficAnnotation network_traffic_annotation = 1; | 170 repeated NetworkTrafficAnnotation network_traffic_annotation = 1; |
168 }; | 171 }; |
169 | 172 |
170 // NetworkTrafficAnnotations that had to go into a whitelist file because the | 173 // NetworkTrafficAnnotations that had to go into a whitelist file because the |
171 // source code could not be annotated (e.g. because it is in a third-party | 174 // source code could not be annotated (e.g. because it is in a third-party |
172 // library). | 175 // library). |
173 message WhitelistedNetworkTrafficAnnotations { | 176 message WhitelistedNetworkTrafficAnnotations { |
174 repeated NetworkTrafficAnnotation network_traffic_annotation = 1; | 177 repeated NetworkTrafficAnnotation network_traffic_annotation = 1; |
175 }; | 178 }; |
176 | 179 |
177 // All NetworkTrafficAnnotations from a Chromium configuration. | 180 // All NetworkTrafficAnnotations from a Chromium configuration. |
178 message NetworkTrafficAnnotations { | 181 message NetworkTrafficAnnotations { |
179 ExtractedNetworkTrafficAnnotation extracted_network_traffic_annotations = 1; | 182 ExtractedNetworkTrafficAnnotation extracted_network_traffic_annotations = 1; |
180 WhitelistedNetworkTrafficAnnotations whitelisted_network_traffic_annotations = | 183 WhitelistedNetworkTrafficAnnotations whitelisted_network_traffic_annotations = |
181 2; | 184 2; |
182 }; | 185 }; |
OLD | NEW |