| OLD | NEW |
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 struct BrowseInfo { | 62 struct BrowseInfo { |
| 63 // The URL we're currently browsing. | 63 // The URL we're currently browsing. |
| 64 GURL url; | 64 GURL url; |
| 65 | 65 |
| 66 // List of IPv4 and IPv6 addresses from which content was requested | 66 // List of IPv4 and IPv6 addresses from which content was requested |
| 67 // together with the hosts on it, while browsing to the |url|. | 67 // together with the hosts on it, while browsing to the |url|. |
| 68 IPUrlMap ips; | 68 IPUrlMap ips; |
| 69 | 69 |
| 70 // If a SafeBrowsing interstitial was shown for the current URL | 70 // If a SafeBrowsing interstitial was shown for the current URL |
| 71 // this will contain the UnsafeResource struct for that URL. | 71 // this will contain the UnsafeResource struct for that URL. |
| 72 std::unique_ptr<SafeBrowsingUIManager::UnsafeResource> unsafe_resource; | 72 std::unique_ptr<security_interstitials::UnsafeResource> unsafe_resource; |
| 73 | 73 |
| 74 // List of redirects that lead to the first page on the current host and | 74 // List of redirects that lead to the first page on the current host and |
| 75 // the current url respectively. These may be the same if the current url | 75 // the current url respectively. These may be the same if the current url |
| 76 // is the first page on its host. | 76 // is the first page on its host. |
| 77 std::vector<GURL> host_redirects; | 77 std::vector<GURL> host_redirects; |
| 78 std::vector<GURL> url_redirects; | 78 std::vector<GURL> url_redirects; |
| 79 | 79 |
| 80 // URL of the referrer of this URL load. | 80 // URL of the referrer of this URL load. |
| 81 GURL referrer; | 81 GURL referrer; |
| 82 | 82 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 content::WebContents* tab_; | 184 content::WebContents* tab_; |
| 185 ClientSideDetectionHost* host_; | 185 ClientSideDetectionHost* host_; |
| 186 base::CancelableTaskTracker cancelable_task_tracker_; | 186 base::CancelableTaskTracker cancelable_task_tracker_; |
| 187 base::WeakPtrFactory<BrowserFeatureExtractor> weak_factory_; | 187 base::WeakPtrFactory<BrowserFeatureExtractor> weak_factory_; |
| 188 | 188 |
| 189 DISALLOW_COPY_AND_ASSIGN(BrowserFeatureExtractor); | 189 DISALLOW_COPY_AND_ASSIGN(BrowserFeatureExtractor); |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 } // namespace safe_browsing | 192 } // namespace safe_browsing |
| 193 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ | 193 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ |
| OLD | NEW |