download_danger_type.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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
8namespace content {
9
10// This enum is also used by histograms.  Do not change the ordering or remove
11// items.
12enum 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  // Memory space for histograms is determined by the max.
36  // ALWAYS ADD NEW VALUES BEFORE THIS ONE.
37  DOWNLOAD_DANGER_TYPE_MAX
38};
39
40}
41
42#endif  // CONTENT_PUBLIC_BROWSER_DOWNLOAD_DANGER_TYPE_H_
43