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_ |
11 #define CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ | 11 #define CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ |
12 #pragma once | |
13 | 12 |
14 #include <map> | 13 #include <map> |
15 #include <set> | 14 #include <set> |
16 #include <string> | 15 #include <string> |
17 #include <utility> | 16 #include <utility> |
18 #include <vector> | 17 #include <vector> |
19 | 18 |
20 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
21 #include "base/callback.h" | 20 #include "base/callback.h" |
22 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 159 |
161 // Set of pending queries (i.e., where history->Query...() was called but | 160 // Set of pending queries (i.e., where history->Query...() was called but |
162 // the history callback hasn't been invoked yet). | 161 // the history callback hasn't been invoked yet). |
163 PendingQueriesMap pending_queries_; | 162 PendingQueriesMap pending_queries_; |
164 | 163 |
165 DISALLOW_COPY_AND_ASSIGN(BrowserFeatureExtractor); | 164 DISALLOW_COPY_AND_ASSIGN(BrowserFeatureExtractor); |
166 }; | 165 }; |
167 | 166 |
168 } // namespace safe_browsing | 167 } // namespace safe_browsing |
169 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ | 168 #endif // CHROME_BROWSER_SAFE_BROWSING_BROWSER_FEATURE_EXTRACTOR_H_ |
OLD | NEW |