Roll src/third_party/WebKit eb1578b:b559582 (svn 193425:193437)
[chromium-blink-merge.git] / chrome / browser / download / download_extensions.h
blob67980caa662baa02bd5ad6c19fe121386a15eda4
1 // Copyright (c) 2011 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.
5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSIONS_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSIONS_H_
8 #include <string>
10 #include "base/files/file_path.h"
12 namespace download_util {
14 enum DownloadDangerLevel {
15 NOT_DANGEROUS,
16 ALLOW_ON_USER_GESTURE,
17 DANGEROUS
20 // Determine the download danger level of a file.
21 DownloadDangerLevel GetFileDangerLevel(const base::FilePath& path);
23 // Tests if we think the server means for this mime_type to be executable.
24 bool IsExecutableMimeType(const std::string& mime_type);
26 } // namespace download_util
28 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSIONS_H_