| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/safe_browsing_db/util.h" | 5 #include "components/safe_browsing_db/util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 8 #include "crypto/sha2.h" | 11 #include "crypto/sha2.h" |
| 9 #include "net/base/escape.h" | 12 #include "net/base/escape.h" |
| 10 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 11 #include "url/url_util.h" | 14 #include "url/url_util.h" |
| 12 | 15 |
| 13 namespace safe_browsing { | 16 namespace safe_browsing { |
| 14 | 17 |
| 15 // Utility functions ----------------------------------------------------------- | 18 // Utility functions ----------------------------------------------------------- |
| 16 | 19 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 GenerateHostsToCheck(url, &hosts); | 402 GenerateHostsToCheck(url, &hosts); |
| 400 GeneratePathsToCheck(url, &paths); | 403 GeneratePathsToCheck(url, &paths); |
| 401 for (size_t h = 0; h < hosts.size(); ++h) { | 404 for (size_t h = 0; h < hosts.size(); ++h) { |
| 402 for (size_t p = 0; p < paths.size(); ++p) { | 405 for (size_t p = 0; p < paths.size(); ++p) { |
| 403 urls->push_back(hosts[h] + paths[p]); | 406 urls->push_back(hosts[h] + paths[p]); |
| 404 } | 407 } |
| 405 } | 408 } |
| 406 } | 409 } |
| 407 | 410 |
| 408 } // namespace safe_browsing | 411 } // namespace safe_browsing |
| OLD | NEW |