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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Executes the built-in File Manager handler or tries to open |file| directly | 87 // Executes the built-in File Manager handler or tries to open |file| directly |
88 // in the browser. Returns false if neither is possible. | 88 // in the browser. Returns false if neither is possible. |
89 bool ExecuteBuiltinHandler( | 89 bool ExecuteBuiltinHandler( |
90 Browser* browser, | 90 Browser* browser, |
91 const base::FilePath& path, | 91 const base::FilePath& path, |
92 const std::string& internal_task_id); | 92 const std::string& internal_task_id); |
93 | 93 |
94 // Checks whether a pepper plugin for |file_extension| is enabled. | 94 // Checks whether a pepper plugin for |file_extension| is enabled. |
95 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension); | 95 bool ShouldBeOpenedWithPlugin(Profile* profile, const char* file_extension); |
96 | 96 |
| 97 // Returns the MIME type of |file_path|. |
| 98 std::string GetMimeTypeForPath(const base::FilePath& file_path); |
| 99 |
97 } // namespace file_manager_util | 100 } // namespace file_manager_util |
98 | 101 |
99 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_UTIL_H_ |
OLD | NEW |