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

Side by Side Diff: chrome/browser/safe_browsing/browser_feature_extractor.h

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // BrowserFeatureExtractor computes various browser features for client-side 5 // BrowserFeatureExtractor computes various browser features for client-side
6 // phishing detection. For now it does a bunch of lookups in the history 6 // phishing detection. For now it does a bunch of lookups in the history
7 // service to see whether a particular URL has been visited before by the 7 // service to see whether a particular URL has been visited before by the
8 // user. 8 // user.
9 9
10 #ifndef CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ 10 #ifndef CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // The url on the bad IP address. 46 // The url on the bad IP address.
47 std::string url; 47 std::string url;
48 std::string method; 48 std::string method;
49 std::string referrer; 49 std::string referrer;
50 content::ResourceType resource_type; 50 content::ResourceType resource_type;
51 51
52 IPUrlInfo(const std::string& url, 52 IPUrlInfo(const std::string& url,
53 const std::string& method, 53 const std::string& method,
54 const std::string& referrer, 54 const std::string& referrer,
55 const content::ResourceType& resource_type); 55 const content::ResourceType& resource_type);
56 IPUrlInfo(const IPUrlInfo& other);
56 ~IPUrlInfo(); 57 ~IPUrlInfo();
57 }; 58 };
58 59
59 typedef std::map<std::string, std::vector<IPUrlInfo> > IPUrlMap; 60 typedef std::map<std::string, std::vector<IPUrlInfo> > IPUrlMap;
60 61
61 struct BrowseInfo { 62 struct BrowseInfo {
62 // The URL we're currently browsing. 63 // The URL we're currently browsing.
63 GURL url; 64 GURL url;
64 65
65 // List of IPv4 and IPv6 addresses from which content was requested 66 // List of IPv4 and IPv6 addresses from which content was requested
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 content::WebContents* tab_; 183 content::WebContents* tab_;
183 ClientSideDetectionHost* host_; 184 ClientSideDetectionHost* host_;
184 base::CancelableTaskTracker cancelable_task_tracker_; 185 base::CancelableTaskTracker cancelable_task_tracker_;
185 base::WeakPtrFactory<BrowserFeatureExtractor> weak_factory_; 186 base::WeakPtrFactory<BrowserFeatureExtractor> weak_factory_;
186 187
187 DISALLOW_COPY_AND_ASSIGN(BrowserFeatureExtractor); 188 DISALLOW_COPY_AND_ASSIGN(BrowserFeatureExtractor);
188 }; 189 };
189 190
190 } // namespace safe_browsing 191 } // namespace safe_browsing
191 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ 192 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698