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

Side by Side Diff: components/safe_browsing_db/util.cc

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « components/safe_browsing_db/util.h ('k') | content/browser/frame_host/frame_tree.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/safe_browsing_db/util.h ('k') | content/browser/frame_host/frame_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698