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

Side by Side Diff: components/domain_reliability/google_configs.cc

Issue 2275983002: Domain Reliability: Update Google domain list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "components/domain_reliability/google_configs.h" 5 #include "components/domain_reliability/google_configs.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // If true, also add a config for www.|hostname|. 25 // If true, also add a config for www.|hostname|.
26 // 26 //
27 // |include_subdomains| will be false in the extra config, but 27 // |include_subdomains| will be false in the extra config, but
28 // |include_origin_specific_collector| will be respected, and will use the 28 // |include_origin_specific_collector| will be respected, and will use the
29 // www subdomain as the origin for the collector so it matches the config. 29 // www subdomain as the origin for the collector so it matches the config.
30 bool duplicate_for_www; 30 bool duplicate_for_www;
31 }; 31 };
32 32
33 const GoogleConfigParams kGoogleConfigs[] = { 33 const GoogleConfigParams kGoogleConfigs[] = {
34 // Origins with subdomains and same-origin collectors. 34 // Origins with subdomains and same-origin collectors. Currently, all
35 // origins with same-origin collectors also run collectors on their www
36 // subdomain. (e.g., both foo.com and www.foo.com.)
35 { "google.ac", true, true, true }, 37 { "google.ac", true, true, true },
36 { "google.ad", true, true, true }, 38 { "google.ad", true, true, true },
37 { "google.ae", true, true, true }, 39 { "google.ae", true, true, true },
38 { "google.af", true, true, true }, 40 { "google.af", true, true, true },
39 { "google.ag", true, true, true }, 41 { "google.ag", true, true, true },
40 { "google.al", true, true, true }, 42 { "google.al", true, true, true },
41 { "google.am", true, true, true }, 43 { "google.am", true, true, true },
42 { "google.as", true, true, true }, 44 { "google.as", true, true, true },
43 { "google.at", true, true, true }, 45 { "google.at", true, true, true },
44 { "google.az", true, true, true }, 46 { "google.az", true, true, true },
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 { "google.co.th", true, true, true }, 83 { "google.co.th", true, true, true },
82 { "google.co.tz", true, true, true }, 84 { "google.co.tz", true, true, true },
83 { "google.co.ug", true, true, true }, 85 { "google.co.ug", true, true, true },
84 { "google.co.uk", true, true, true }, 86 { "google.co.uk", true, true, true },
85 { "google.co.uz", true, true, true }, 87 { "google.co.uz", true, true, true },
86 { "google.co.ve", true, true, true }, 88 { "google.co.ve", true, true, true },
87 { "google.co.vi", true, true, true }, 89 { "google.co.vi", true, true, true },
88 { "google.co.za", true, true, true }, 90 { "google.co.za", true, true, true },
89 { "google.co.zm", true, true, true }, 91 { "google.co.zm", true, true, true },
90 { "google.co.zw", true, true, true }, 92 { "google.co.zw", true, true, true },
91 { "google.com", true, true, false },
92 { "google.com.af", true, true, true }, 93 { "google.com.af", true, true, true },
93 { "google.com.ag", true, true, true }, 94 { "google.com.ag", true, true, true },
94 { "google.com.ai", true, true, true }, 95 { "google.com.ai", true, true, true },
95 { "google.com.ar", true, true, true }, 96 { "google.com.ar", true, true, true },
96 { "google.com.au", true, true, true }, 97 { "google.com.au", true, true, true },
97 { "google.com.bd", true, true, true }, 98 { "google.com.bd", true, true, true },
98 { "google.com.bh", true, true, true }, 99 { "google.com.bh", true, true, true },
99 { "google.com.bn", true, true, true }, 100 { "google.com.bn", true, true, true },
100 { "google.com.bo", true, true, true }, 101 { "google.com.bo", true, true, true },
101 { "google.com.br", true, true, true }, 102 { "google.com.br", true, true, true },
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 { "google.tm", true, true, true }, 247 { "google.tm", true, true, true },
247 { "google.tn", true, true, true }, 248 { "google.tn", true, true, true },
248 { "google.to", true, true, true }, 249 { "google.to", true, true, true },
249 { "google.tt", true, true, true }, 250 { "google.tt", true, true, true },
250 { "google.us", true, true, true }, 251 { "google.us", true, true, true },
251 { "google.uz", true, true, true }, 252 { "google.uz", true, true, true },
252 { "google.vg", true, true, true }, 253 { "google.vg", true, true, true },
253 { "google.vu", true, true, true }, 254 { "google.vu", true, true, true },
254 { "google.ws", true, true, true }, 255 { "google.ws", true, true, true },
255 { "l.google.com", true, true, true }, 256 { "l.google.com", true, true, true },
257 // google.com is a special case. We have a custom config for www.google.com,
cbentzel 2016/08/24 14:11:44 Nit: I'd add a newline between l.google.com and go
258 // so set generate_config_for_www_subdomain = false.
259 { "google.com", true, true, false },
256 260
257 // Origins with subdomains and without same-origin collectors. 261 // Origins with subdomains and without same-origin collectors.
258 { "2mdn.net", true, false, false }, 262 { "2mdn.net", true, false, false },
259 { "adgoogle.net", true, false, false }, 263 { "adgoogle.net", true, false, false },
260 { "admeld.com", true, false, false }, 264 { "admeld.com", true, false, false },
261 { "admob.biz", true, false, false }, 265 { "admob.biz", true, false, false },
262 { "admob.co.in", true, false, false }, 266 { "admob.co.in", true, false, false },
263 { "admob.co.kr", true, false, false }, 267 { "admob.co.kr", true, false, false },
264 { "admob.co.nz", true, false, false }, 268 { "admob.co.nz", true, false, false },
265 { "admob.co.uk", true, false, false }, 269 { "admob.co.uk", true, false, false },
(...skipping 19 matching lines...) Expand all
285 { "admob.mobi", true, false, false }, 289 { "admob.mobi", true, false, false },
286 { "admob.no", true, false, false }, 290 { "admob.no", true, false, false },
287 { "admob.ph", true, false, false }, 291 { "admob.ph", true, false, false },
288 { "admob.pt", true, false, false }, 292 { "admob.pt", true, false, false },
289 { "admob.sg", true, false, false }, 293 { "admob.sg", true, false, false },
290 { "admob.tw", true, false, false }, 294 { "admob.tw", true, false, false },
291 { "admob.us", true, false, false }, 295 { "admob.us", true, false, false },
292 { "admob.vn", true, false, false }, 296 { "admob.vn", true, false, false },
293 { "adwhirl.com", true, false, false }, 297 { "adwhirl.com", true, false, false },
294 { "android.com", true, false, false }, 298 { "android.com", true, false, false },
299 { "anycast.metric.gstatic.com", true, false, false },
295 { "anycast-edge.metric.gstatic.com", true, false, false }, 300 { "anycast-edge.metric.gstatic.com", true, false, false },
296 { "anycast1.metric.gstatic.com", true, false, false }, 301 { "anycast-stb.metric.gstatic.com", true, false, false },
297 { "anycast1-stb.metric.gstatic.com", true, false, false },
298 { "chromecast.com", true, false, false }, 302 { "chromecast.com", true, false, false },
299 { "chromeexperiments.com", true, false, false }, 303 { "chromeexperiments.com", true, false, false },
300 { "chromestatus.com", true, false, false }, 304 { "chromestatus.com", true, false, false },
301 { "chromium.org", true, false, false }, 305 { "chromium.org", true, false, false },
302 { "cloudendpointsapis.com", true, false, false }, 306 { "cloudendpointsapis.com", true, false, false },
303 { "dartmotif.com", true, false, false }, 307 { "dartmotif.com", true, false, false },
304 { "dartsearch.net", true, false, false }, 308 { "dartsearch.net", true, false, false },
305 { "doubleclick.com", true, false, false }, 309 { "doubleclick.com", true, false, false },
306 { "doubleclick.ne.jp", true, false, false }, 310 { "doubleclick.ne.jp", true, false, false },
307 { "doubleclick.net", true, false, false }, 311 { "doubleclick.net", true, false, false },
308 { "doubleclickusercontent.com", true, false, false }, 312 { "doubleclickusercontent.com", true, false, false },
309 { "fls.doubleclick.net", true, false, false }, 313 { "fls.doubleclick.net", true, false, false },
310 { "g.co", true, false, false }, 314 { "g.co", true, false, false },
311 { "g.doubleclick.net", true, false, false }, 315 { "g.doubleclick.net", true, false, false },
312 { "ggpht.com", true, false, false }, 316 { "ggpht.com", true, false, false },
313 { "gmodules.com", true, false, false }, 317 { "gmodules.com", true, false, false },
314 { "goo.gl", true, false, false }, 318 { "goo.gl", true, false, false },
315 { "google-syndication.com", true, false, false }, 319 { "google-syndication.com", true, false, false },
316 { "google.cat", true, false, false }, 320 { "google.cat", true, false, false },
317 { "google.info", true, false, false }, 321 { "google.info", true, false, false },
318 { "google.jobs", true, false, false }, 322 { "google.jobs", true, false, false },
319 { "google.net", true, false, false }, 323 { "google.net", true, false, false },
324 { "google.stackdriver.com", true, false, false },
cbentzel 2016/08/24 14:11:44 Nit: this seems out of order
320 { "google.org", true, false, false }, 325 { "google.org", true, false, false },
321 { "google.stackdriver.com", true, false, false },
322 { "googleadapis.com", true, false, false }, 326 { "googleadapis.com", true, false, false },
323 { "googleadservices.com", true, false, false }, 327 { "googleadservices.com", true, false, false },
324 { "googleadsserving.cn", true, false, false }, 328 { "googleadsserving.cn", true, false, false },
325 { "googlealumni.com", true, false, false }, 329 { "googlealumni.com", true, false, false },
326 { "googleapis.cn", true, false, false }, 330 { "googleapis.cn", true, false, false },
327 { "googleapis.com", true, false, false }, 331 { "googleapis.com", true, false, false },
328 { "googleapps.com", true, false, false }, 332 { "googleapps.com", true, false, false },
329 { "googlecbs.com", true, false, false }, 333 { "googlecbs.com", true, false, false },
330 { "googlecode.com", true, false, false }, 334 { "googlecode.com", true, false, false },
331 { "googlecommerce.com", true, false, false }, 335 { "googlecommerce.com", true, false, false },
332 { "googledrive.com", true, false, false }, 336 { "googledrive.com", true, false, false },
333 { "googleenterprise.com", true, false, false }, 337 { "googleenterprise.com", true, false, false },
334 { "googlefiber.com", true, false, false }, 338 { "googlefiber.com", true, false, false },
335 { "googlefiber.net", true, false, false }, 339 { "googlefiber.net", true, false, false },
336 { "googlegoro.com", true, false, false }, 340 { "googlegoro.com", true, false, false },
337 { "googlehosted.com", true, false, false }, 341 { "googlehosted.com", true, false, false },
338 { "googlepayments.com", true, false, false }, 342 { "googlepayments.com", true, false, false },
339 { "googlesource.com", true, false, false }, 343 { "googlesource.com", true, false, false },
340 { "googlesyndication.com", true, false, false }, 344 { "googlesyndication.com", true, false, false },
341 { "googletagmanager.com", true, false, false }, 345 { "googletagmanager.com", true, false, false },
342 { "googletagservices.com", true, false, false }, 346 { "googletagservices.com", true, false, false },
343 { "googleusercontent.com", true, false, false }, 347 { "googleusercontent.com", true, false, false },
344 { "gstatic.cn", true, false, false }, 348 { "gstatic.cn", true, false, false },
345 { "gstatic.com", true, false, false }, 349 { "gstatic.com", true, false, false },
350 { "gvt3.com", true, false, false },
cbentzel 2016/08/24 14:11:44 What are these?
351 { "gvt9.com", true, false, false },
346 { "picasa.com", true, false, false }, 352 { "picasa.com", true, false, false },
347 { "recaptcha.net", true, false, false }, 353 { "recaptcha.net", true, false, false },
348 { "stackdriver.com", true, false, false }, 354 { "stackdriver.com", true, false, false },
349 { "stbcast.metric.gstatic.com", true, false, false }, 355 { "stbcast.metric.gstatic.com", true, false, false },
350 { "stbcast2.metric.gstatic.com", true, false, false }, 356 { "stbcast2.metric.gstatic.com", true, false, false },
351 { "stbcast3.metric.gstatic.com", true, false, false }, 357 { "stbcast3.metric.gstatic.com", true, false, false },
352 { "stbcast4.metric.gstatic.com", true, false, false }, 358 { "stbcast4.metric.gstatic.com", true, false, false },
353 { "stbcast-stb.metric.gstatic.com", true, false, false }, 359 { "stbcast-stb.metric.gstatic.com", true, false, false },
354 { "stbcast2-stb.metric.gstatic.com", true, false, false }, 360 { "stbcast2-stb.metric.gstatic.com", true, false, false },
355 { "stbcast3-stb.metric.gstatic.com", true, false, false }, 361 { "stbcast3-stb.metric.gstatic.com", true, false, false },
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 { "youtube.ug", true, false, false }, 497 { "youtube.ug", true, false, false },
492 { "youtube.uy", true, false, false }, 498 { "youtube.uy", true, false, false },
493 { "youtube.vn", true, false, false }, 499 { "youtube.vn", true, false, false },
494 { "youtubeeducation.com", true, false, false }, 500 { "youtubeeducation.com", true, false, false },
495 { "youtubemobilesupport.com", true, false, false }, 501 { "youtubemobilesupport.com", true, false, false },
496 { "ytimg.com", true, false, false }, 502 { "ytimg.com", true, false, false },
497 503
498 // Origins without subdomains and with same-origin collectors. 504 // Origins without subdomains and with same-origin collectors.
499 { "accounts.google.com", false, true, false }, 505 { "accounts.google.com", false, true, false },
500 { "apis.google.com", false, true, false }, 506 { "apis.google.com", false, true, false },
507 { "ddm.google.com", false, true, false },
508 { "mail.google.com", false, true, false },
501 { "b.mail.google.com", false, true, false }, 509 { "b.mail.google.com", false, true, false },
502 { "chatenabled.mail.google.com", false, true, false }, 510 { "chatenabled.mail.google.com", false, true, false },
503 { "ddm.google.com", false, true, false }, 511 { "www.gmail.com", false, true, false },
504 { "gmail.com", false, true, false }, 512 { "gmail.com", false, true, false },
505 { "gmail.google.com", false, true, false }, 513 { "gmail.google.com", false, true, false },
506 { "mail.google.com", false, true, false },
507 { "mail-attachment.googleusercontent.com", false, true, false }, 514 { "mail-attachment.googleusercontent.com", false, true, false },
508 { "www.gmail.com", false, true, false },
509 515
510 // Origins without subdomains or same-origin collectors. 516 // Origins without subdomains or same-origin collectors.
511 { "ad.doubleclick.net", false, false, false }, 517 { "ad.doubleclick.net", false, false, false },
512 { "drive.google.com", false, false, false }, 518 { "drive.google.com", false, false, false },
513 { "redirector.googlevideo.com", false, false, false }, 519 { "redirector.googlevideo.com", false, false, false },
514 }; 520 };
515 521
516 const char* kGoogleStandardCollectors[] = { 522 const char* kGoogleStandardCollectors[] = {
517 "https://beacons.gvt2.com/domainreliability/upload", 523 "https://beacons.gvt2.com/domainreliability/upload",
518 "https://beacons2.gvt2.com/domainreliability/upload", 524 "https://beacons2.gvt2.com/domainreliability/upload",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 configs_out->clear(); 568 configs_out->clear();
563 569
564 for (auto& params : kGoogleConfigs) { 570 for (auto& params : kGoogleConfigs) {
565 configs_out->push_back(CreateGoogleConfig(params, false).release()); 571 configs_out->push_back(CreateGoogleConfig(params, false).release());
566 if (params.duplicate_for_www) 572 if (params.duplicate_for_www)
567 configs_out->push_back(CreateGoogleConfig(params, true).release()); 573 configs_out->push_back(CreateGoogleConfig(params, true).release());
568 } 574 }
569 } 575 }
570 576
571 } // namespace domain_reliability 577 } // namespace domain_reliability
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698