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 CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_ 6 #define CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_ 7 8 namespace base { 9 class FilePath; 10 } 11 12 namespace safe_browsing { 13 namespace download_protection_util { 14 15 // Returns true if the given file is a supported binary file type. 16 bool IsBinaryFile(const base::FilePath& file); 17 18 // Returns true if the given file is a supported archive file type. 19 bool IsArchiveFile(const base::FilePath& file); 20 21 } // namespace download_protection_util 22 } // namespace safe_browsing 23 24 #endif // CHROME_COMMON_SAFE_BROWSING_DOWNLOAD_PROTECTION_UTIL_H_ 25