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

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

Issue 16281006: Use a direct include of strings headers in chrome/renderer/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_url_feature_extractor.h" 5 #include "chrome/renderer/safe_browsing/phishing_url_feature_extractor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/perftimer.h" 13 #include "base/perftimer.h"
14 #include "base/string_util.h"
15 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h"
16 #include "chrome/renderer/safe_browsing/features.h" 16 #include "chrome/renderer/safe_browsing/features.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
19 19
20 namespace safe_browsing { 20 namespace safe_browsing {
21 21
22 PhishingUrlFeatureExtractor::PhishingUrlFeatureExtractor() {} 22 PhishingUrlFeatureExtractor::PhishingUrlFeatureExtractor() {}
23 23
24 PhishingUrlFeatureExtractor::~PhishingUrlFeatureExtractor() {} 24 PhishingUrlFeatureExtractor::~PhishingUrlFeatureExtractor() {}
25 25
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Copy over only the splits that are 3 or more chars long. 115 // Copy over only the splits that are 3 or more chars long.
116 // TODO(bryner): Determine a meaningful min size. 116 // TODO(bryner): Determine a meaningful min size.
117 for (std::vector<std::string>::iterator it = raw_splits.begin(); 117 for (std::vector<std::string>::iterator it = raw_splits.begin();
118 it != raw_splits.end(); ++it) { 118 it != raw_splits.end(); ++it) {
119 if (it->length() >= kMinPathComponentLength) 119 if (it->length() >= kMinPathComponentLength)
120 tokens->push_back(*it); 120 tokens->push_back(*it);
121 } 121 }
122 } 122 }
123 123
124 } // namespace safe_browsing 124 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/renderer/safe_browsing/phishing_term_feature_extractor_unittest.cc ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698