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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_util.h

Issue 584433002: Add UI for the new harmful download warning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add histograms to histograms.xml Created 6 years, 3 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) 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 // Utilities for the SafeBrowsing code. 5 // Utilities for the SafeBrowsing code.
6 6
7 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ 7 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_
8 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ 8 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_
9 9
10 #include <cstring> 10 #include <cstring>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 enum SBThreatType { 125 enum SBThreatType {
126 // No threat at all. 126 // No threat at all.
127 SB_THREAT_TYPE_SAFE, 127 SB_THREAT_TYPE_SAFE,
128 128
129 // The URL is being used for phishing. 129 // The URL is being used for phishing.
130 SB_THREAT_TYPE_URL_PHISHING, 130 SB_THREAT_TYPE_URL_PHISHING,
131 131
132 // The URL hosts malware. 132 // The URL hosts malware.
133 SB_THREAT_TYPE_URL_MALWARE, 133 SB_THREAT_TYPE_URL_MALWARE,
134 134
135 // The URL hosts harmful programs.
136 SB_THREAT_TYPE_URL_HARMFUL,
137
135 // The download URL is malware. 138 // The download URL is malware.
136 SB_THREAT_TYPE_BINARY_MALWARE_URL, 139 SB_THREAT_TYPE_BINARY_MALWARE_URL,
137 140
138 // Url detected by the client-side phishing model. Note that unlike the 141 // Url detected by the client-side phishing model. Note that unlike the
139 // above values, this does not correspond to a downloaded list. 142 // above values, this does not correspond to a downloaded list.
140 SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL, 143 SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL,
141 144
142 // The Chrome extension or app (given by its ID) is malware. 145 // The Chrome extension or app (given by its ID) is malware.
143 SB_THREAT_TYPE_EXTENSION, 146 SB_THREAT_TYPE_EXTENSION,
144 147
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 GURL GeneratePhishingReportUrl(const std::string& report_page, 219 GURL GeneratePhishingReportUrl(const std::string& report_page,
217 const std::string& url_to_report, 220 const std::string& url_to_report,
218 bool is_client_side_detection); 221 bool is_client_side_detection);
219 222
220 SBFullHash StringToSBFullHash(const std::string& hash_in); 223 SBFullHash StringToSBFullHash(const std::string& hash_in);
221 std::string SBFullHashToString(const SBFullHash& hash_out); 224 std::string SBFullHashToString(const SBFullHash& hash_out);
222 225
223 } // namespace safe_browsing_util 226 } // namespace safe_browsing_util
224 227
225 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_ 228 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698