| OLD | NEW |
| 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> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "components/domain_reliability/config.h" | 11 #include "components/domain_reliability/config.h" |
| 9 | 12 |
| 10 namespace domain_reliability { | 13 namespace domain_reliability { |
| 11 | 14 |
| 12 namespace { | 15 namespace { |
| 13 | 16 |
| 14 struct GoogleConfigParams { | 17 struct GoogleConfigParams { |
| 15 const char* hostname; | 18 const char* hostname; |
| 16 bool include_subdomains; | 19 bool include_subdomains; |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 configs_out->clear(); | 532 configs_out->clear(); |
| 530 | 533 |
| 531 for (auto& params : kGoogleConfigs) { | 534 for (auto& params : kGoogleConfigs) { |
| 532 configs_out->push_back(CreateGoogleConfig(params, false).release()); | 535 configs_out->push_back(CreateGoogleConfig(params, false).release()); |
| 533 if (params.duplicate_for_www) | 536 if (params.duplicate_for_www) |
| 534 configs_out->push_back(CreateGoogleConfig(params, true).release()); | 537 configs_out->push_back(CreateGoogleConfig(params, true).release()); |
| 535 } | 538 } |
| 536 } | 539 } |
| 537 | 540 |
| 538 } // namespace domain_reliability | 541 } // namespace domain_reliability |
| OLD | NEW |