| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file provides MIME related utilities. | 5 // This file provides MIME related utilities. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_MIME_UTIL_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_MIME_UTIL_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_MIME_UTIL_H_ | 8 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_MIME_UTIL_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" | 12 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class FilePath; | 16 class FilePath; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace file_manager { | 19 namespace file_manager { |
| 20 namespace util { | 20 namespace util { |
| 21 | 21 |
| 22 // Returns the MIME type of |file_path|. Returns "" if the MIME type is | 22 // Returns the MIME type of |file_path|. Returns "" if the MIME type is |
| 23 // unknown. | 23 // unknown. |
| 24 std::string GetMimeTypeForPath(const base::FilePath& file_path); | 24 std::string GetMimeTypeForPath(const base::FilePath& file_path); |
| 25 | 25 |
| 26 } // namespace util | 26 } // namespace util |
| 27 } // namespace file_manager | 27 } // namespace file_manager |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_MIME_UTIL_H_ | 29 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_MIME_UTIL_H_ |
| OLD | NEW |