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_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | |
10 | 9 |
11 #include "base/file_path.h" | 10 #include "base/file_path.h" |
12 #include "chrome/browser/google_apis/drive_service_interface.h" | 11 #include "chrome/browser/google_apis/operation_registry.h" |
13 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
14 #include "ui/shell_dialogs/select_file_dialog.h" | 13 #include "ui/shell_dialogs/select_file_dialog.h" |
15 | 14 |
16 class Browser; | 15 class Browser; |
17 class Profile; | 16 class Profile; |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 class ListValue; | 19 class ListValue; |
21 } | 20 } |
22 | 21 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Opens file browser on the folder containing the file, with the file selected. | 81 // Opens file browser on the folder containing the file, with the file selected. |
83 void ShowFileInFolder(const FilePath& path); | 82 void ShowFileInFolder(const FilePath& path); |
84 | 83 |
85 // Executes the built-in File Manager handler or tries to open |file| directly | 84 // Executes the built-in File Manager handler or tries to open |file| directly |
86 // in the browser. Returns false if neither is possible. | 85 // in the browser. Returns false if neither is possible. |
87 bool ExecuteBuiltinHandler( | 86 bool ExecuteBuiltinHandler( |
88 Browser* browser, | 87 Browser* browser, |
89 const FilePath& path, | 88 const FilePath& path, |
90 const std::string& internal_task_id); | 89 const std::string& internal_task_id); |
91 | 90 |
92 void InstallCRX(Browser* browser, const FilePath& path); | |
93 | |
94 bool ShouldBeOpenedWithPdfPlugin(Profile* profile, const char* file_extension); | 91 bool ShouldBeOpenedWithPdfPlugin(Profile* profile, const char* file_extension); |
95 | 92 |
96 // Converts the vector of progress status to their JSON (Value) form. | 93 // Converts the vector of progress status to their JSON (Value) form. |
97 base::ListValue* ProgressStatusVectorToListValue( | 94 base::ListValue* ProgressStatusVectorToListValue( |
98 Profile* profile, | 95 Profile* profile, |
99 const std::string& extension_id, | 96 const std::string& extension_id, |
100 const google_apis::OperationProgressStatusList& list); | 97 const google_apis::OperationProgressStatusList& list); |
101 | 98 |
102 } // namespace file_manager_util | 99 } // namespace file_manager_util |
103 | 100 |
104 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ | 101 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ |
OLD | NEW |