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_
10 #include "base/files/file_path.h"
12 namespace download_util
{
14 enum DownloadDangerLevel
{
16 ALLOW_ON_USER_GESTURE
,
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_