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

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

Issue 12211005: fix build with enable_web_intents=0 on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const std::set<std::string>& available_apps, 191 const std::set<std::string>& available_apps,
192 std::set<std::string>* default_apps); 192 std::set<std::string>* default_apps);
193 193
194 // Find the list of drive apps that can be used with the given file types. If 194 // Find the list of drive apps that can be used with the given file types. If
195 // a default task is set in the result list, then |default_already_set| is set 195 // a default task is set in the result list, then |default_already_set| is set
196 // to true. 196 // to true.
197 bool FindDriveAppTasks(const FileInfoList& file_info_list, 197 bool FindDriveAppTasks(const FileInfoList& file_info_list,
198 ListValue* result_list, 198 ListValue* result_list,
199 bool* default_already_set); 199 bool* default_already_set);
200 200
201 #if defined(ENABLE_WEB_INTENTS)
201 // Find the list of Web Intent tasks that can be used with the given file 202 // Find the list of Web Intent tasks that can be used with the given file
202 // types, appending them to the |result_list|. 203 // types, appending them to the |result_list|.
203 bool FindWebIntentTasks(const std::vector<FilePath>& file_paths, 204 bool FindWebIntentTasks(const std::vector<FilePath>& file_paths,
204 ListValue* result_list); 205 ListValue* result_list);
206 #endif
205 207
206 // Find the list of app file handlers that can be used with the given file 208 // Find the list of app file handlers that can be used with the given file
207 // types, appending them to the |result_list|. 209 // types, appending them to the |result_list|.
208 bool FindAppTasks(const std::vector<FilePath>& file_paths, 210 bool FindAppTasks(const std::vector<FilePath>& file_paths,
209 ListValue* result_list); 211 ListValue* result_list);
210 }; 212 };
211 213
212 // Implements the chrome.fileBrowserPrivate.executeTask method. 214 // Implements the chrome.fileBrowserPrivate.executeTask method.
213 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { 215 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction {
214 public: 216 public:
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 protected: 851 protected:
850 virtual ~ValidatePathNameLengthFunction(); 852 virtual ~ValidatePathNameLengthFunction();
851 853
852 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length); 854 void OnFilePathLimitRetrieved(size_t current_length, size_t max_length);
853 855
854 // AsyncExtensionFunction overrides. 856 // AsyncExtensionFunction overrides.
855 virtual bool RunImpl() OVERRIDE; 857 virtual bool RunImpl() OVERRIDE;
856 }; 858 };
857 859
858 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 860 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698