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 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_DANGER_TYPE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_DANGER_TYPE_H_ 7 8 namespace content { 9 10 // This enum is also used by histograms. Do not change the ordering or remove 11 // items. 12 enum DownloadDangerType { 13 // The download is safe. 14 DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS = 0, 15 16 // A dangerous file to the system (e.g.: a pdf or extension from 17 // places other than gallery). 18 DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE, 19 20 // Safebrowsing download service shows this URL leads to malicious file 21 // download. 22 DOWNLOAD_DANGER_TYPE_DANGEROUS_URL, 23 24 // SafeBrowsing download service shows this file content as being malicious. 25 DOWNLOAD_DANGER_TYPE_DANGEROUS_CONTENT, 26 27 // The content of this download may be malicious (e.g., extension is exe but 28 // SafeBrowsing has not finished checking the content). 29 DOWNLOAD_DANGER_TYPE_MAYBE_DANGEROUS_CONTENT, 30 31 // SafeBrowsing download service checked the contents of the download, but 32 // didn't have enough data to determine whether it was malicious. 33 DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT, 34 35 // The download was evaluated to be one of the other types of danger, 36 // but the user told us to go ahead anyway. 37 DOWNLOAD_DANGER_TYPE_USER_VALIDATED, 38 39 // SafeBrowsing download service checked the contents of the download and 40 // didn't have data on this specific file, but the file was served from a host 41 // known to serve mostly malicious content. 42 DOWNLOAD_DANGER_TYPE_DANGEROUS_HOST, 43 44 // Applications and extensions that modify browser and/or computer settings 45 DOWNLOAD_DANGER_TYPE_POTENTIALLY_UNWANTED, 46 47 // Memory space for histograms is determined by the max. 48 // ALWAYS ADD NEW VALUES BEFORE THIS ONE. 49 DOWNLOAD_DANGER_TYPE_MAX 50 }; 51 52 } 53 54 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_DANGER_TYPE_H_ 55