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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
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 #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/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/browser/history/history.h" 17 #include "chrome/browser/history/history.h"
18 #include "chrome/browser/history/history_types.h" 18 #include "chrome/browser/history/history_types.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/safe_browsing/browser_features.h" 20 #include "chrome/browser/safe_browsing/browser_features.h"
21 #include "chrome/browser/safe_browsing/client_side_detection_service.h" 21 #include "chrome/browser/safe_browsing/client_side_detection_service.h"
22 #include "chrome/common/safe_browsing/csd.pb.h" 22 #include "chrome/common/safe_browsing/csd.pb.h"
23 #include "content/browser/cancelable_request.h" 23 #include "content/browser/cancelable_request.h"
24 #include "content/browser/tab_contents/tab_contents.h" 24 #include "content/browser/tab_contents/tab_contents.h"
25 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 #include "content/public/common/page_transition_types.h" 26 #include "content/public/common/page_transition_types.h"
27 #include "googleurl/src/gurl.h" 27 #include "googleurl/src/gurl.h"
28 28
29 using content::BrowserThread;
30
29 namespace safe_browsing { 31 namespace safe_browsing {
30 32
31 BrowseInfo::BrowseInfo() : http_status_code(0) {} 33 BrowseInfo::BrowseInfo() : http_status_code(0) {}
32 34
33 BrowseInfo::~BrowseInfo() {} 35 BrowseInfo::~BrowseInfo() {}
34 36
35 static void AddFeature(const std::string& feature_name, 37 static void AddFeature(const std::string& feature_name,
36 double feature_value, 38 double feature_value,
37 ClientPhishingRequest* request) { 39 ClientPhishingRequest* request) {
38 DCHECK(request); 40 DCHECK(request);
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 *history = profile->GetHistoryService(Profile::EXPLICIT_ACCESS); 447 *history = profile->GetHistoryService(Profile::EXPLICIT_ACCESS);
446 if (*history) { 448 if (*history) {
447 return true; 449 return true;
448 } 450 }
449 } 451 }
450 VLOG(2) << "Unable to query history. No history service available."; 452 VLOG(2) << "Unable to query history. No history service available.";
451 return false; 453 return false;
452 } 454 }
453 455
454 } // namespace safe_browsing 456 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/rlz/rlz.cc ('k') | chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698