OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/features.h" | 5 #include "chrome/renderer/safe_browsing/features.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 | 9 |
10 namespace safe_browsing { | 10 namespace safe_browsing { |
11 | 11 |
12 const size_t FeatureMap::kMaxFeatureMapSize = 10000; | 12 const size_t FeatureMap::kMaxFeatureMapSize = 10000; |
13 | 13 |
14 FeatureMap::FeatureMap() {} | 14 FeatureMap::FeatureMap() {} |
15 FeatureMap::~FeatureMap() {} | 15 FeatureMap::~FeatureMap() {} |
16 | 16 |
17 bool FeatureMap::AddBooleanFeature(const std::string& name) { | 17 bool FeatureMap::AddBooleanFeature(const std::string& name) { |
18 return AddRealFeature(name, 1.0); | 18 return AddRealFeature(name, 1.0); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const char kPageNumScriptTagsGTSix[] = "PageNumScriptTags>6"; | 79 const char kPageNumScriptTagsGTSix[] = "PageNumScriptTags>6"; |
80 | 80 |
81 // Other DOM HTML features | 81 // Other DOM HTML features |
82 const char kPageImgOtherDomainFreq[] = "PageImgOtherDomainFreq"; | 82 const char kPageImgOtherDomainFreq[] = "PageImgOtherDomainFreq"; |
83 | 83 |
84 // Page term features | 84 // Page term features |
85 const char kPageTerm[] = "PageTerm="; | 85 const char kPageTerm[] = "PageTerm="; |
86 | 86 |
87 } // namespace features | 87 } // namespace features |
88 } // namespace safe_browsing | 88 } // namespace safe_browsing |
OLD | NEW |