1 // Copyright 2013 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 // This file provides MIME related utilities. 6 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_MIME_UTIL_H_ 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_MIME_UTIL_H_ 9 10 #include <string> 11 12 namespace base { 13 class FilePath; 14 } 15 16 namespace file_manager { 17 namespace util { 18 19 // Returns the MIME type of |file_path|. Returns "" if the MIME type is 20 // unknown. 21 std::string GetMimeTypeForPath(const base::FilePath& file_path); 22 23 } // namespace util 24 } // namespace file_manager 25 26 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_MIME_UTIL_H_ 27