OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Executes the built-in File Manager handler or tries to open |file| directly | 90 // Executes the built-in File Manager handler or tries to open |file| directly |
91 // in the browser. Returns false if neither is possible. | 91 // in the browser. Returns false if neither is possible. |
92 bool ExecuteBuiltinHandler( | 92 bool ExecuteBuiltinHandler( |
93 Browser* browser, | 93 Browser* browser, |
94 const base::FilePath& path, | 94 const base::FilePath& path, |
95 const std::string& internal_task_id); | 95 const std::string& internal_task_id); |
96 | 96 |
97 // Checks whether a pepper plugin for |file_extension| is enabled. | 97 // Checks whether a pepper plugin for |file_extension| is enabled. |
98 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension); | 98 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension); |
99 | 99 |
| 100 // Returns the MIME type of |file_path|. |
| 101 std::string GetMimeTypeForPath(const base::FilePath& file_path); |
| 102 |
100 } // namespace file_manager_util | 103 } // namespace file_manager_util |
101 | 104 |
102 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ | 105 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ |
OLD | NEW |