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

Side by Side Diff: chrome/renderer/safe_browsing/phishing_classifier_delegate.cc

Issue 8784004: Update includes to new header locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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/renderer/safe_browsing/phishing_classifier_delegate.h" 5 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/memory/scoped_callback_factory.h" 14 #include "base/memory/scoped_callback_factory.h"
15 #include "chrome/common/safe_browsing/csd.pb.h" 15 #include "chrome/common/safe_browsing/csd.pb.h"
16 #include "chrome/common/safe_browsing/safebrowsing_messages.h" 16 #include "chrome/common/safe_browsing/safebrowsing_messages.h"
17 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" 17 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h"
18 #include "chrome/renderer/safe_browsing/phishing_classifier.h" 18 #include "chrome/renderer/safe_browsing/phishing_classifier.h"
19 #include "chrome/renderer/safe_browsing/scorer.h" 19 #include "chrome/renderer/safe_browsing/scorer.h"
20 #include "content/public/renderer/document_state.h" 20 #include "content/public/renderer/document_state.h"
21 #include "content/public/renderer/navigation_state.h" 21 #include "content/public/renderer/navigation_state.h"
22 #include "content/public/renderer/render_thread.h" 22 #include "content/public/renderer/render_thread.h"
23 #include "content/public/renderer/render_view.h" 23 #include "content/public/renderer/render_view.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
28 28
29 using content::DocumentState; 29 using content::DocumentState;
30 using content::NavigationState; 30 using content::NavigationState;
31 using content::RenderThread; 31 using content::RenderThread;
32 32
33 namespace safe_browsing { 33 namespace safe_browsing {
34 34
35 static GURL StripRef(const GURL& url) { 35 static GURL StripRef(const GURL& url) {
36 GURL::Replacements replacements; 36 GURL::Replacements replacements;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 VLOG(2) << "Starting classification for " << last_finished_load_url_; 284 VLOG(2) << "Starting classification for " << last_finished_load_url_;
285 last_url_sent_to_classifier_ = last_finished_load_url_; 285 last_url_sent_to_classifier_ = last_finished_load_url_;
286 is_classifying_ = true; 286 is_classifying_ = true;
287 classifier_->BeginClassification( 287 classifier_->BeginClassification(
288 &classifier_page_text_, 288 &classifier_page_text_,
289 base::Bind(&PhishingClassifierDelegate::ClassificationDone, 289 base::Bind(&PhishingClassifierDelegate::ClassificationDone,
290 base::Unretained(this))); 290 base::Unretained(this)));
291 } 291 }
292 292
293 } // namespace safe_browsing 293 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698