File: data_sharing_network_utils.h

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (339 lines) | stat: -rw-r--r-- 12,466 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_DATA_SHARING_PUBLIC_DATA_SHARING_NETWORK_UTILS_H_
#define COMPONENTS_DATA_SHARING_PUBLIC_DATA_SHARING_NETWORK_UTILS_H_

#include "net/traffic_annotation/network_traffic_annotation.h"

namespace data_sharing {

inline constexpr net::NetworkTrafficAnnotationTag
    kAvatarFetcherTrafficAnnotation =
        net::DefineNetworkTrafficAnnotation("data_sharing_avatar_image_fetcher",
                                            R"(
        semantics {
          sender: "Image fetcher for data sharing people profile images"
          description:
            "Data sharing service needs to display the account avatars "
            "of users in a shared tab group on Chrome UI."
          trigger:
            "As required from Chrome UIs (tab group editor bubble "
            "and recent activity chips)."
          data: "No data sent in this request."
          destination: GOOGLE_OWNED_SERVICE
          user_data: {
            type: NONE
          }
          internal {
              contacts { email: "chrome-data-sharing-eng@google.com" }
            }
          last_reviewed: "2024-11-27"
        }
        policy {
          cookies_allowed: NO
          cookies_store: ""
          setting:
            "This feature cannot be disabled by settings as it is part of the "
            "Data Sharing."
          policy_exception_justification:
            "Not implemented."
        })");

inline constexpr net::NetworkTrafficAnnotationTag
    kCreateGroupTrafficAnnotation =
        net::DefineNetworkTrafficAnnotation("data_sharing_service_create_group",
                                            R"(
  semantics {
    sender: "Data Sharing Service Create Group (Android)\"
    description:
      "All create group calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Create group is called."
    data:
      "Info related to creating a collaboration group."
      "HW_OS_INFO : Info about client device."
      "GAID_ID : Unique identifier for user. Used as profile id."
      "OTHER: Relation defines relation to the group. Example: The user creating the group is OWNER."
      "ACCESS_TOKEN : This is to identify if the user calling has access to the group."
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"}
      contacts{email : "nyquist@chromium.org"}
    }
    user_data {
      type: HW_OS_INFO
      type: GAID_ID
      type: OTHER
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag kReadGroupsTrafficAnnotation =
    net::DefineNetworkTrafficAnnotation("data_sharing_service_read_groups", R"(
  semantics {
    sender: "Data Sharing Service Read Groups (Android)\"
    description:
      "All read groups calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Read groups is called."
    data:
      "Info related to reading collaboration groups."
      "HW_OS_INFO : Info about client device."
      "OTHER : GroupID is a unique identifier for a collaboration. This is used to identify the group information that is being fetched."
      "TokenSecret from the link is optionally used to get access before your GAIA_ID provides access."
      "ACCESS_TOKEN: This is to identify if the user calling has access to the group"
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"} contacts {
      email:
        "nyquist@chromium.org"
      }
    }
    user_data {
      type: HW_OS_INFO
      type: GAID_ID
      type: OTHER
      type: ACCESS_TOKEN
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag
    kDeleteGroupsTrafficAnnotation = net::DefineNetworkTrafficAnnotation(
        "data_sharing_service_delete_groups",
        R"(
  semantics {
    sender: "Data Sharing Service Delete Group (Android)\"
    description:
      "All delete group calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Delete groups is called."
    data:
      "Info related to deleting collaboration groups."
      "HW_OS_INFO : Info about client device."
      "OTHER : GroupID is a unique identifier for a collaboration. This is used to identify the group information that is being fetched."
      "ACCESS_TOKEN : This is to identify if the user calling has access to the group."
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"} contacts {
      email:
        "nyquist@chromium.org"
      }
    }
    user_data {
      type: HW_OS_INFO
      type: OTHER
      type: ACCESS_TOKEN
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag
    kUpdateGroupTrafficAnnotation =
        net::DefineNetworkTrafficAnnotation("data_sharing_service_update_group",
                                            R"(
  semantics {
    sender: "Data Sharing Service update Group (Android)\"
    description:
      "All update group calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Update group is called."
    data:
      "Info related to updating collaboration group."
      "HW_OS_INFO : Info about client device."
      "OTHER : GroupID is a unique identifier for a collaboration. This is used to identify the group information that is being fetched."
      "TokenSecret from the link is optionally used to get access before your GAIA_ID provides access."
      "GAID_ID : Unique identifier for user. Used as profile id."
      "ACCESS_TOKEN: This is to identify if the user calling has access to the group."

    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"} contacts {
      email:
        "nyquist@chromium.org"
      }
    }
    user_data {
      type: HW_OS_INFO
      type: GAID_ID
      type: OTHER
      type: ACCESS_TOKEN
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag kLookupTrafficAnnotation =
    net::DefineNetworkTrafficAnnotation("data_sharing_service_lookup",
                                        R"(
  semantics {
    sender: "Data Sharing Service Lookup."
    description:
      "All lookup calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
      "This lookup person details about a group member or self based on the ID."
    trigger: "Lookup is called."
    data:
      "Info related to lookup info for the group."
      "GAID_ID : Unique identifier for user. Used as profile id for lookup."
      "EMAIL : Info about client email."
      "PHONE : Info about client phone."
      "OTHER : Chat Space ID for lookup."
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"}
      contacts{email : "nyquist@chromium.org"}
    }
    user_data {
      type: GAID_ID
      type: EMAIL
      type: PHONE
      type: OTHER
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag
    kBlockPersonTrafficAnnotation =
        net::DefineNetworkTrafficAnnotation("data_sharing_service_block_person",
                                            R"(
  semantics {
    sender: "Data Sharing Service Block Person."
    description:
      "All block person calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Block person is called."
    data:
      "Info related to blocking a person from the group."
      "HW_OS_INFO : Info about client device."
      "GAID_ID : Unique identifier for user. Used as profile id."
      "NAME : This is to identify the user name."
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"}
      contacts{email : "nyquist@chromium.org"}
    }
    user_data {
      type: HW_OS_INFO
      type: GAID_ID
      type: NAME
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag kLeaveGroupTrafficAnnotation =
    net::DefineNetworkTrafficAnnotation("data_sharing_service_leave_group",
                                        R"(
  semantics {
    sender: "Data Sharing Service Leave Group (Android)\"
    description:
      "All leave group calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Leave group is called."
    data:
      "Info related to leaving a group."
      "HW_OS_INFO : Info about client device."
      "OTHER : GroupID is a unique identifier for a collaboration. This is used to identify the group information that is being fetched."
      "TokenSecret from the link is optionally used to get access before your GAIA_ID provides access."
      "ACCESS_TOKEN : This is to identify if the user calling has access to the group."
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"}
      contacts{email : "nyquist@chromium.org"}
    }
    user_data {
      type: HW_OS_INFO
      type: OTHER
      type: ACCESS_TOKEN
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

inline constexpr net::NetworkTrafficAnnotationTag kJoinGroupTrafficAnnotation =
    net::DefineNetworkTrafficAnnotation("data_sharing_service_join_group",
                                        R"(
  semantics {
    sender: "Data Sharing Service Join Group (Android)\"
    description:
      "All join group calls to Google DataSharing SDK APIs will use ChromeNetworkStack."
    trigger: "Join group is called."
    data:
      "Info related to joining a group."
      "HW_OS_INFO : Info about client device."
      "OTHER : GroupID is a unique identifier for a collaboration. This is used to identify the group information that is being fetched."
      "TokenSecret from the link is optionally used to get access before your GAIA_ID provides access."
      "ACCESS_TOKEN : This is to identify if the user calling has access to the group."
    destination: GOOGLE_OWNED_SERVICE
    internal {
      contacts{email : "chrome-tab-group-eng@google.com"}
      contacts{email : "ritikagup@google.com"}
      contacts{email : "nyquist@chromium.org"}
    }
    user_data {
      type: HW_OS_INFO
      type: OTHER
      type: ACCESS_TOKEN
    }
    last_reviewed: "2024-05-23"
  }
  policy {
    cookies_allowed: NO
    setting:
      "This feature cannot be disabled by settings as it is part of the Data "
      "Sharing."
    policy_exception_justification: "Not implemented."
  })");

}  // namespace data_sharing

#endif  // COMPONENTS_DATA_SHARING_PUBLIC_DATA_SHARING_NETWORK_UTILS_H_