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> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 } // namespace | 30 } // namespace |
31 | 31 |
32 // SBCachedFullHashResult ------------------------------------------------------ | 32 // SBCachedFullHashResult ------------------------------------------------------ |
33 | 33 |
34 SBCachedFullHashResult::SBCachedFullHashResult() {} | 34 SBCachedFullHashResult::SBCachedFullHashResult() {} |
35 | 35 |
36 SBCachedFullHashResult::SBCachedFullHashResult( | 36 SBCachedFullHashResult::SBCachedFullHashResult( |
37 const base::Time& in_expire_after) | 37 const base::Time& in_expire_after) |
38 : expire_after(in_expire_after) {} | 38 : expire_after(in_expire_after) {} |
39 | 39 |
| 40 SBCachedFullHashResult::SBCachedFullHashResult( |
| 41 const SBCachedFullHashResult& other) = default; |
| 42 |
40 SBCachedFullHashResult::~SBCachedFullHashResult() {} | 43 SBCachedFullHashResult::~SBCachedFullHashResult() {} |
41 | 44 |
42 // Listnames that browser can process. | 45 // Listnames that browser can process. |
43 const char kMalwareList[] = "goog-malware-shavar"; | 46 const char kMalwareList[] = "goog-malware-shavar"; |
44 const char kPhishingList[] = "goog-phish-shavar"; | 47 const char kPhishingList[] = "goog-phish-shavar"; |
45 const char kBinUrlList[] = "goog-badbinurl-shavar"; | 48 const char kBinUrlList[] = "goog-badbinurl-shavar"; |
46 const char kCsdWhiteList[] = "goog-csdwhite-sha256"; | 49 const char kCsdWhiteList[] = "goog-csdwhite-sha256"; |
47 const char kDownloadWhiteList[] = "goog-downloadwhite-digest256"; | 50 const char kDownloadWhiteList[] = "goog-downloadwhite-digest256"; |
48 const char kExtensionBlacklist[] = "goog-badcrxids-digestvar"; | 51 const char kExtensionBlacklist[] = "goog-badcrxids-digestvar"; |
49 const char kIPBlacklist[] = "goog-badip-digest256"; | 52 const char kIPBlacklist[] = "goog-badip-digest256"; |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 GenerateHostsToCheck(url, &hosts); | 414 GenerateHostsToCheck(url, &hosts); |
412 GeneratePathsToCheck(url, &paths); | 415 GeneratePathsToCheck(url, &paths); |
413 for (size_t h = 0; h < hosts.size(); ++h) { | 416 for (size_t h = 0; h < hosts.size(); ++h) { |
414 for (size_t p = 0; p < paths.size(); ++p) { | 417 for (size_t p = 0; p < paths.size(); ++p) { |
415 urls->push_back(hosts[h] + paths[p]); | 418 urls->push_back(hosts[h] + paths[p]); |
416 } | 419 } |
417 } | 420 } |
418 } | 421 } |
419 | 422 |
420 } // namespace safe_browsing | 423 } // namespace safe_browsing |
OLD | NEW |