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

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: Fix sort order. Created 4 years, 3 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 },
256 257
258 // google.com is a special case. We have a custom config for www.google.com,
259 // so set generate_config_for_www_subdomain = false.
260 { "google.com", true, true, false },
261
257 // Origins with subdomains and without same-origin collectors. 262 // Origins with subdomains and without same-origin collectors.
258 { "2mdn.net", true, false, false }, 263 { "2mdn.net", true, false, false },
259 { "adgoogle.net", true, false, false }, 264 { "adgoogle.net", true, false, false },
260 { "admeld.com", true, false, false }, 265 { "admeld.com", true, false, false },
261 { "admob.biz", true, false, false }, 266 { "admob.biz", true, false, false },
262 { "admob.co.in", true, false, false }, 267 { "admob.co.in", true, false, false },
263 { "admob.co.kr", true, false, false }, 268 { "admob.co.kr", true, false, false },
264 { "admob.co.nz", true, false, false }, 269 { "admob.co.nz", true, false, false },
265 { "admob.co.uk", true, false, false }, 270 { "admob.co.uk", true, false, false },
266 { "admob.co.za", true, false, false }, 271 { "admob.co.za", true, false, false },
(...skipping 19 matching lines...) Expand all
286 { "admob.no", true, false, false }, 291 { "admob.no", true, false, false },
287 { "admob.ph", true, false, false }, 292 { "admob.ph", true, false, false },
288 { "admob.pt", true, false, false }, 293 { "admob.pt", true, false, false },
289 { "admob.sg", true, false, false }, 294 { "admob.sg", true, false, false },
290 { "admob.tw", true, false, false }, 295 { "admob.tw", true, false, false },
291 { "admob.us", true, false, false }, 296 { "admob.us", true, false, false },
292 { "admob.vn", true, false, false }, 297 { "admob.vn", true, false, false },
293 { "adwhirl.com", true, false, false }, 298 { "adwhirl.com", true, false, false },
294 { "android.com", true, false, false }, 299 { "android.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 }, 302 { "anycast.metric.gstatic.com", true, false, false },
298 { "chromecast.com", true, false, false }, 303 { "chromecast.com", true, false, false },
299 { "chromeexperiments.com", true, false, false }, 304 { "chromeexperiments.com", true, false, false },
300 { "chromestatus.com", true, false, false }, 305 { "chromestatus.com", true, false, false },
301 { "chromium.org", true, false, false }, 306 { "chromium.org", true, false, false },
302 { "cloudendpointsapis.com", true, false, false }, 307 { "cloudendpointsapis.com", true, false, false },
303 { "dartmotif.com", true, false, false }, 308 { "dartmotif.com", true, false, false },
304 { "dartsearch.net", true, false, false }, 309 { "dartsearch.net", true, false, false },
305 { "doubleclick.com", true, false, false }, 310 { "doubleclick.com", true, false, false },
306 { "doubleclick.ne.jp", true, false, false }, 311 { "doubleclick.ne.jp", true, false, false },
307 { "doubleclick.net", true, false, false }, 312 { "doubleclick.net", true, false, false },
(...skipping 28 matching lines...) Expand all
336 { "googlegoro.com", true, false, false }, 341 { "googlegoro.com", true, false, false },
337 { "googlehosted.com", true, false, false }, 342 { "googlehosted.com", true, false, false },
338 { "googlepayments.com", true, false, false }, 343 { "googlepayments.com", true, false, false },
339 { "googlesource.com", true, false, false }, 344 { "googlesource.com", true, false, false },
340 { "googlesyndication.com", true, false, false }, 345 { "googlesyndication.com", true, false, false },
341 { "googletagmanager.com", true, false, false }, 346 { "googletagmanager.com", true, false, false },
342 { "googletagservices.com", true, false, false }, 347 { "googletagservices.com", true, false, false },
343 { "googleusercontent.com", true, false, false }, 348 { "googleusercontent.com", true, false, false },
344 { "gstatic.cn", true, false, false }, 349 { "gstatic.cn", true, false, false },
345 { "gstatic.com", true, false, false }, 350 { "gstatic.com", true, false, false },
351 { "gvt3.com", true, false, false },
352 { "gvt9.com", true, false, false },
346 { "picasa.com", true, false, false }, 353 { "picasa.com", true, false, false },
347 { "recaptcha.net", true, false, false }, 354 { "recaptcha.net", true, false, false },
348 { "stackdriver.com", true, false, false }, 355 { "stackdriver.com", true, false, false },
356 { "stbcast-stb.metric.gstatic.com", true, false, false },
349 { "stbcast.metric.gstatic.com", true, false, false }, 357 { "stbcast.metric.gstatic.com", true, false, false },
358 { "stbcast2-stb.metric.gstatic.com", true, false, false },
350 { "stbcast2.metric.gstatic.com", true, false, false }, 359 { "stbcast2.metric.gstatic.com", true, false, false },
360 { "stbcast3-stb.metric.gstatic.com", true, false, false },
351 { "stbcast3.metric.gstatic.com", true, false, false }, 361 { "stbcast3.metric.gstatic.com", true, false, false },
362 { "stbcast4-stb.metric.gstatic.com", true, false, false },
352 { "stbcast4.metric.gstatic.com", true, false, false }, 363 { "stbcast4.metric.gstatic.com", true, false, false },
353 { "stbcast-stb.metric.gstatic.com", true, false, false },
354 { "stbcast2-stb.metric.gstatic.com", true, false, false },
355 { "stbcast3-stb.metric.gstatic.com", true, false, false },
356 { "stbcast4-stb.metric.gstatic.com", true, false, false },
357 { "unicast.metric.gstatic.com", true, false, false },
358 { "unicast-edge.metric.gstatic.com", true, false, false }, 364 { "unicast-edge.metric.gstatic.com", true, false, false },
359 { "unicast-stb.metric.gstatic.com", true, false, false }, 365 { "unicast-stb.metric.gstatic.com", true, false, false },
366 { "unicast.metric.gstatic.com", true, false, false },
367 { "unicast2-stb.metric.gstatic.com", true, false, false },
360 { "unicast2.metric.gstatic.com", true, false, false }, 368 { "unicast2.metric.gstatic.com", true, false, false },
361 { "unicast2-stb.metric.gstatic.com", true, false, false },
362 { "waze.com", true, false, false }, 369 { "waze.com", true, false, false },
363 { "withgoogle.com", true, false, false }, 370 { "withgoogle.com", true, false, false },
364 { "youtu.be", true, false, false }, 371 { "youtu.be", true, false, false },
365 { "youtube-3rd-party.com", true, false, false }, 372 { "youtube-3rd-party.com", true, false, false },
366 { "youtube-nocookie.com", true, false, false }, 373 { "youtube-nocookie.com", true, false, false },
367 { "youtube.ae", true, false, false }, 374 { "youtube.ae", true, false, false },
368 { "youtube.al", true, false, false }, 375 { "youtube.al", true, false, false },
369 { "youtube.am", true, false, false }, 376 { "youtube.am", true, false, false },
370 { "youtube.at", true, false, false }, 377 { "youtube.at", true, false, false },
371 { "youtube.az", true, false, false }, 378 { "youtube.az", true, false, false },
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 { "ytimg.com", true, false, false }, 503 { "ytimg.com", true, false, false },
497 504
498 // Origins without subdomains and with same-origin collectors. 505 // Origins without subdomains and with same-origin collectors.
499 { "accounts.google.com", false, true, false }, 506 { "accounts.google.com", false, true, false },
500 { "apis.google.com", false, true, false }, 507 { "apis.google.com", false, true, false },
501 { "b.mail.google.com", false, true, false }, 508 { "b.mail.google.com", false, true, false },
502 { "chatenabled.mail.google.com", false, true, false }, 509 { "chatenabled.mail.google.com", false, true, false },
503 { "ddm.google.com", false, true, false }, 510 { "ddm.google.com", false, true, false },
504 { "gmail.com", false, true, false }, 511 { "gmail.com", false, true, false },
505 { "gmail.google.com", false, true, false }, 512 { "gmail.google.com", false, true, false },
513 { "mail-attachment.googleusercontent.com", false, true, false },
506 { "mail.google.com", false, true, false }, 514 { "mail.google.com", false, true, false },
507 { "mail-attachment.googleusercontent.com", false, true, false },
508 { "www.gmail.com", false, true, false }, 515 { "www.gmail.com", false, true, false },
509 516
510 // Origins without subdomains or same-origin collectors. 517 // Origins without subdomains or same-origin collectors.
511 { "ad.doubleclick.net", false, false, false }, 518 { "ad.doubleclick.net", false, false, false },
512 { "drive.google.com", false, false, false }, 519 { "drive.google.com", false, false, false },
513 { "redirector.googlevideo.com", false, false, false }, 520 { "redirector.googlevideo.com", false, false, false },
514 }; 521 };
515 522
516 const char* kGoogleStandardCollectors[] = { 523 const char* kGoogleStandardCollectors[] = {
517 "https://beacons.gvt2.com/domainreliability/upload", 524 "https://beacons.gvt2.com/domainreliability/upload",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 configs_out->clear(); 569 configs_out->clear();
563 570
564 for (auto& params : kGoogleConfigs) { 571 for (auto& params : kGoogleConfigs) {
565 configs_out->push_back(CreateGoogleConfig(params, false).release()); 572 configs_out->push_back(CreateGoogleConfig(params, false).release());
566 if (params.duplicate_for_www) 573 if (params.duplicate_for_www)
567 configs_out->push_back(CreateGoogleConfig(params, true).release()); 574 configs_out->push_back(CreateGoogleConfig(params, true).release());
568 } 575 }
569 } 576 }
570 577
571 } // namespace domain_reliability 578 } // 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