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

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

Issue 10834383: Chrome OS "open with" picker allowing Web Intents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: tiny 80 chars fix Created 8 years, 3 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_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 <string> 9 #include <string>
10 #include <queue> 10 #include <queue>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const std::set<std::string>& available_apps, 163 const std::set<std::string>& available_apps,
164 std::set<std::string>* default_apps); 164 std::set<std::string>* default_apps);
165 165
166 // Find the list of drive apps that can be used with the given file types. If 166 // Find the list of drive apps that can be used with the given file types. If
167 // a default task is set in the result list, then |default_already_set| is set 167 // a default task is set in the result list, then |default_already_set| is set
168 // to true. 168 // to true.
169 bool FindDriveAppTasks(const FileInfoList& file_info_list, 169 bool FindDriveAppTasks(const FileInfoList& file_info_list,
170 ListValue* result_list, 170 ListValue* result_list,
171 bool* default_already_set); 171 bool* default_already_set);
172 172
173 // Find the list of Web Intent tasks that can be used with the given file
174 // types, appending them to the |result_list|.
175 bool FindWebIntentTasks(const std::vector<GURL>& file_urls,
176 ListValue* result_list);
173 }; 177 };
174 178
175 // Implements the chrome.fileBrowserPrivate.executeTask method. 179 // Implements the chrome.fileBrowserPrivate.executeTask method.
176 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { 180 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction {
177 public: 181 public:
178 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); 182 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask");
179 183
180 ExecuteTasksFileBrowserFunction(); 184 ExecuteTasksFileBrowserFunction();
181 185
182 void OnTaskExecuted(bool success); 186 void OnTaskExecuted(bool success);
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 DECLARE_EXTENSION_FUNCTION_NAME( 751 DECLARE_EXTENSION_FUNCTION_NAME(
748 "fileBrowserPrivate.requestDirectoryRefresh"); 752 "fileBrowserPrivate.requestDirectoryRefresh");
749 753
750 protected: 754 protected:
751 virtual ~RequestDirectoryRefreshFunction() {} 755 virtual ~RequestDirectoryRefreshFunction() {}
752 756
753 virtual bool RunImpl() OVERRIDE; 757 virtual bool RunImpl() OVERRIDE;
754 }; 758 };
755 759
756 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 760 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698