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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
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_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const std::set<std::string>& available_apps, 192 const std::set<std::string>& available_apps,
193 std::set<std::string>* default_apps); 193 std::set<std::string>* default_apps);
194 194
195 // Find the list of drive apps that can be used with the given file types. If 195 // Find the list of drive apps that can be used with the given file types. If
196 // a default task is set in the result list, then |default_already_set| is set 196 // a default task is set in the result list, then |default_already_set| is set
197 // to true. 197 // to true.
198 bool FindDriveAppTasks(const FileInfoList& file_info_list, 198 bool FindDriveAppTasks(const FileInfoList& file_info_list,
199 ListValue* result_list, 199 ListValue* result_list,
200 bool* default_already_set); 200 bool* default_already_set);
201 201
202 #if defined(ENABLE_WEB_INTENTS)
203 // Find the list of Web Intent tasks that can be used with the given file
204 // types, appending them to the |result_list|.
205 bool FindWebIntentTasks(const std::vector<base::FilePath>& file_paths,
206 ListValue* result_list);
207 #endif
208
209 // Find the list of app file handlers that can be used with the given file 202 // Find the list of app file handlers that can be used with the given file
210 // types, appending them to the |result_list|. 203 // types, appending them to the |result_list|.
211 bool FindAppTasks(const std::vector<base::FilePath>& file_paths, 204 bool FindAppTasks(const std::vector<base::FilePath>& file_paths,
212 ListValue* result_list); 205 ListValue* result_list);
213 }; 206 };
214 207
215 // Implements the chrome.fileBrowserPrivate.executeTask method. 208 // Implements the chrome.fileBrowserPrivate.executeTask method.
216 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { 209 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction {
217 public: 210 public:
218 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask", 211 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask",
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 protected: 885 protected:
893 virtual ~ValidatePathNameLengthFunction(); 886 virtual ~ValidatePathNameLengthFunction();
894 887
895 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); 888 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length);
896 889
897 // AsyncExtensionFunction overrides. 890 // AsyncExtensionFunction overrides.
898 virtual bool RunImpl() OVERRIDE; 891 virtual bool RunImpl() OVERRIDE;
899 }; 892 };
900 893
901 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 894 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698