Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_manager_util.h

Issue 14670023: ChromeOS: Support opening files with apps from the downloads page. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: prioritize fallback handlers over non-default app handlers Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698