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 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" | 5 #include "chrome/browser/safe_browsing/browser_feature_extractor.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "chrome/common/safe_browsing/csd.pb.h" | 13 #include "chrome/common/safe_browsing/csd.pb.h" |
14 #include "chrome/browser/history/history.h" | 14 #include "chrome/browser/history/history.h" |
15 #include "chrome/browser/history/history_types.h" | 15 #include "chrome/browser/history/history_types.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/safe_browsing/client_side_detection_service.h" | 17 #include "chrome/browser/safe_browsing/client_side_detection_service.h" |
18 #include "content/common/page_transition_types.h" | 18 #include "content/common/page_transition_types.h" |
19 #include "content/browser/browser_thread.h" | 19 #include "content/browser/browser_thread.h" |
20 #include "content/browser/cancelable_request.h" | 20 #include "content/browser/cancelable_request.h" |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 if (tab_ && tab_->profile()) { | 335 if (tab_ && tab_->profile()) { |
336 *history = tab_->profile()->GetHistoryService(Profile::EXPLICIT_ACCESS); | 336 *history = tab_->profile()->GetHistoryService(Profile::EXPLICIT_ACCESS); |
337 if (*history) { | 337 if (*history) { |
338 return true; | 338 return true; |
339 } | 339 } |
340 } | 340 } |
341 VLOG(2) << "Unable to query history. No history service available."; | 341 VLOG(2) << "Unable to query history. No history service available."; |
342 return false; | 342 return false; |
343 } | 343 } |
344 }; // namespace safe_browsing | 344 }; // namespace safe_browsing |
OLD | NEW |