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

Side by Side Diff: components/safe_browsing/renderer/phishing_dom_feature_extractor.h

Issue 2667343006: Componentize safe_browsing [X+1] : move the renderer part to component.
Patch Set: Created 3 years, 10 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 // PhishingDOMFeatureExtractor handles computing DOM-based features for the 5 // PhishingDOMFeatureExtractor handles computing DOM-based features for the
6 // client-side phishing detection model. These include the presence of various 6 // client-side phishing detection model. These include the presence of various
7 // types of elements, ratios of external and secure links, and tokens for 7 // types of elements, ratios of external and secure links, and tokens for
8 // external domains linked to. 8 // external domains linked to.
9 9
10 #ifndef CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ 10 #ifndef COMPONENTS_SAFE_BROWSING_RENDERER_PHISHING_DOM_FEATURE_EXTRACTOR_H_
11 #define CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ 11 #define COMPONENTS_SAFE_BROWSING_RENDERER_PHISHING_DOM_FEATURE_EXTRACTOR_H_
12 12
13 #include <memory> 13 #include <memory>
14 #include <string> 14 #include <string>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "third_party/WebKit/public/web/WebDocument.h" 19 #include "third_party/WebKit/public/web/WebDocument.h"
20 20
21 class GURL; 21 class GURL;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Used in scheduling ExtractFeaturesWithTimeout tasks. 145 // Used in scheduling ExtractFeaturesWithTimeout tasks.
146 // These pointers are invalidated if extraction is cancelled. 146 // These pointers are invalidated if extraction is cancelled.
147 base::WeakPtrFactory<PhishingDOMFeatureExtractor> weak_factory_; 147 base::WeakPtrFactory<PhishingDOMFeatureExtractor> weak_factory_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(PhishingDOMFeatureExtractor); 149 DISALLOW_COPY_AND_ASSIGN(PhishingDOMFeatureExtractor);
150 }; 150 };
151 151
152 } // namespace safe_browsing 152 } // namespace safe_browsing
153 153
154 #endif // CHROME_RENDERER_SAFE_BROWSING_PHISHING_DOM_FEATURE_EXTRACTOR_H_ 154 #endif // COMPONENTS_SAFE_BROWSING_RENDERER_PHISHING_DOM_FEATURE_EXTRACTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698