Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 // This file includes a sample and a template for text-coded traffic_annotation. | |
|
asanka
2017/02/01 02:28:28
This is a sample file. Let's make it a .cc and hav
Ramin Halavati
2017/02/01 10:11:14
Done.
| |
| 6 // For more description on each filed, please refer to | |
|
asanka
2017/02/01 02:28:28
*field
Ramin Halavati
2017/02/01 10:11:13
Done.
| |
| 7 // (tools/traffic_annotation/traffic_annotation.proto) | |
| 8 // | |
| 9 // Sample: | |
| 10 // net::NetworkTrafficAnnotationTag traffic_annotation = | |
| 11 // net::DefineNetworkTrafficAnnotation("spellcheck_lookup", R"( | |
| 12 // semantics { | |
| 13 // sender: "spellcheck" | |
| 14 // description: | |
| 15 // "Google Chrome can provide smarter spell-checking by sending " | |
| 16 // "text you type into the browser to Google's servers, allowing " | |
| 17 // "you to use the same spell-checking technology used by Google " | |
| 18 // "products, such as Docs. If the feature is enabled, Chrome will " | |
| 19 // "send the entire contents of text fields as you type in them to " | |
| 20 // "Google along with the browser’s default language. Google " | |
| 21 // "returns a list of suggested spellings, which will be displayed " | |
| 22 // "in the context menu." | |
| 23 // trigger: "User types text into a text field or asks to correct a " | |
| 24 // "misspelled word." | |
| 25 // data: "Text a user has typed into a text field. No user identifier " | |
| 26 // "is sent along with the text." | |
| 27 // destination: GOOGLE_OWNED_SERVICE | |
| 28 // } | |
| 29 // policy { | |
| 30 // cookies_allowed: false | |
| 31 // setting: | |
| 32 // "You can enable or disable this feature via 'Use a web service to " | |
| 33 // "help resolve spelling errors.' in Chrome's settings under " | |
| 34 // "Advanced. The feature is disabled by default." | |
| 35 // policy { | |
| 36 // SpellCheckServiceEnabled { | |
| 37 // policy_options {mode: MANDATORY} | |
| 38 // value: false | |
| 39 // } | |
| 40 // } | |
| 41 // })"); | |
| 42 // | |
| 43 // Template: | |
| 44 // net::NetworkTrafficAnnotationTag traffic_annotation = | |
| 45 // net::DefineNetworkTrafficAnnotation("", R"( | |
| 46 // semantics { | |
| 47 // sender: "" | |
| 48 // description: "" | |
| 49 // trigger: "" | |
| 50 // data: "" | |
| 51 // destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER | |
| 52 // } | |
| 53 // policy { | |
|
asanka
2017/02/01 02:28:28
I'm still a bit unclear on how this policy is chec
battre
2017/02/01 03:48:24
For now this is less of an enforcement and more an
| |
| 54 // cookies_allowed: false/true | |
| 55 // cookies_store_exceptions: "" | |
| 56 // setting: "" | |
| 57 // policy { | |
| 58 // [POLICY_NAME] { | |
|
asanka
2017/02/01 02:28:28
Does this mean that each network traffic origin ne
battre
2017/02/01 03:48:24
In the first pass this is optional if no matching
| |
| 59 // policy_options {mode: MANDATORY/RECOMMENDED/UNSET} | |
| 60 // value: ... | |
| 61 // } | |
| 62 // } | |
| 63 // })"); | |
| OLD | NEW |