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 15 matching lines...) Expand all Loading... |
26 } | 26 } |
27 } | 27 } |
28 return false; | 28 return false; |
29 } | 29 } |
30 } // namespace | 30 } // namespace |
31 | 31 |
32 // ThreatMetadata ------------------------------------------------------------ | 32 // ThreatMetadata ------------------------------------------------------------ |
33 ThreatMetadata::ThreatMetadata() | 33 ThreatMetadata::ThreatMetadata() |
34 : threat_pattern_type(ThreatPatternType::NONE) {} | 34 : threat_pattern_type(ThreatPatternType::NONE) {} |
35 | 35 |
| 36 ThreatMetadata::ThreatMetadata(const ThreatMetadata& other) = default; |
| 37 |
36 ThreatMetadata::~ThreatMetadata() {} | 38 ThreatMetadata::~ThreatMetadata() {} |
37 | 39 |
38 // SBCachedFullHashResult ------------------------------------------------------ | 40 // SBCachedFullHashResult ------------------------------------------------------ |
39 | 41 |
40 SBCachedFullHashResult::SBCachedFullHashResult() {} | 42 SBCachedFullHashResult::SBCachedFullHashResult() {} |
41 | 43 |
42 SBCachedFullHashResult::SBCachedFullHashResult( | 44 SBCachedFullHashResult::SBCachedFullHashResult( |
43 const base::Time& in_expire_after) | 45 const base::Time& in_expire_after) |
44 : expire_after(in_expire_after) {} | 46 : expire_after(in_expire_after) {} |
45 | 47 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 GenerateHostsToCheck(url, &hosts); | 423 GenerateHostsToCheck(url, &hosts); |
422 GeneratePathsToCheck(url, &paths); | 424 GeneratePathsToCheck(url, &paths); |
423 for (size_t h = 0; h < hosts.size(); ++h) { | 425 for (size_t h = 0; h < hosts.size(); ++h) { |
424 for (size_t p = 0; p < paths.size(); ++p) { | 426 for (size_t p = 0; p < paths.size(); ++p) { |
425 urls->push_back(hosts[h] + paths[p]); | 427 urls->push_back(hosts[h] + paths[p]); |
426 } | 428 } |
427 } | 429 } |
428 } | 430 } |
429 | 431 |
430 } // namespace safe_browsing | 432 } // namespace safe_browsing |
OLD | NEW |