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

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

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 months 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
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 <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "chrome/common/safe_browsing/csd.pb.h"
16 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h" 15 #include "chrome/renderer/safe_browsing/feature_extractor_clock.h"
17 #include "chrome/renderer/safe_browsing/phishing_classifier.h" 16 #include "chrome/renderer/safe_browsing/phishing_classifier.h"
18 #include "chrome/renderer/safe_browsing/scorer.h" 17 #include "chrome/renderer/safe_browsing/scorer.h"
19 #include "components/safe_browsing/common/safebrowsing_messages.h" 18 #include "components/safe_browsing/common/safebrowsing_messages.h"
19 #include "components/safe_browsing/csd.pb.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_frame.h" 22 #include "content/public/renderer/render_frame.h"
23 #include "content/public/renderer/render_thread.h" 23 #include "content/public/renderer/render_thread.h"
24 #include "third_party/WebKit/public/platform/WebURL.h" 24 #include "third_party/WebKit/public/platform/WebURL.h"
25 #include "third_party/WebKit/public/web/WebDocument.h" 25 #include "third_party/WebKit/public/web/WebDocument.h"
26 #include "third_party/WebKit/public/web/WebLocalFrame.h" 26 #include "third_party/WebKit/public/web/WebLocalFrame.h"
27 #include "third_party/WebKit/public/web/WebView.h" 27 #include "third_party/WebKit/public/web/WebView.h"
28 28
29 using content::DocumentState; 29 using content::DocumentState;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 &classifier_page_text_, 287 &classifier_page_text_,
288 base::Bind(&PhishingClassifierDelegate::ClassificationDone, 288 base::Bind(&PhishingClassifierDelegate::ClassificationDone,
289 base::Unretained(this))); 289 base::Unretained(this)));
290 } 290 }
291 291
292 void PhishingClassifierDelegate::OnDestruct() { 292 void PhishingClassifierDelegate::OnDestruct() {
293 delete this; 293 delete this;
294 } 294 }
295 295
296 } // namespace safe_browsing 296 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698