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

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

Issue 11787028: New FileSystemURL cracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test on Win Created 7 years, 11 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 11 matching lines...) Expand all
22 22
23 class GURL; 23 class GURL;
24 class Profile; 24 class Profile;
25 25
26 namespace base { 26 namespace base {
27 class Value; 27 class Value;
28 } 28 }
29 29
30 namespace fileapi { 30 namespace fileapi {
31 class FileSystemContext; 31 class FileSystemContext;
32 class FileSystemURL;
32 } 33 }
33 34
34 namespace drive { 35 namespace drive {
35 struct SearchResultInfo; 36 struct SearchResultInfo;
36 class DriveCacheEntry; 37 class DriveCacheEntry;
37 struct DriveWebAppInfo; 38 struct DriveWebAppInfo;
38 class DriveWebAppsRegistry; 39 class DriveWebAppsRegistry;
39 } 40 }
40 41
41 namespace ui { 42 namespace ui {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const FilePath& local_path, const FilePath& virtual_path, 97 const FilePath& local_path, const FilePath& virtual_path,
97 const std::string& extension_id) = 0; 98 const std::string& extension_id) = 0;
98 99
99 // AsyncExtensionFunction overrides. 100 // AsyncExtensionFunction overrides.
100 virtual bool RunImpl() OVERRIDE; 101 virtual bool RunImpl() OVERRIDE;
101 102
102 private: 103 private:
103 void RespondOnUIThread(bool success); 104 void RespondOnUIThread(bool success);
104 void RunFileWatchOperationOnFileThread( 105 void RunFileWatchOperationOnFileThread(
105 scoped_refptr<FileBrowserEventRouter> event_router, 106 scoped_refptr<FileBrowserEventRouter> event_router,
106 const GURL& file_url, 107 const fileapi::FileSystemURL& file_url,
107 const std::string& extension_id); 108 const std::string& extension_id);
108 }; 109 };
109 110
110 // Implements the chrome.fileBrowserPrivate.addFileWatch method. 111 // Implements the chrome.fileBrowserPrivate.addFileWatch method.
111 class AddFileWatchBrowserFunction : public FileWatchBrowserFunctionBase { 112 class AddFileWatchBrowserFunction : public FileWatchBrowserFunctionBase {
112 public: 113 public:
113 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.addFileWatch", 114 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.addFileWatch",
114 FILEBROWSERPRIVATE_ADDFILEWATCH) 115 FILEBROWSERPRIVATE_ADDFILEWATCH)
115 116
116 protected: 117 protected:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 // 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
194 // 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
195 // to true. 196 // to true.
196 bool FindDriveAppTasks(const FileInfoList& file_info_list, 197 bool FindDriveAppTasks(const FileInfoList& file_info_list,
197 ListValue* result_list, 198 ListValue* result_list,
198 bool* default_already_set); 199 bool* default_already_set);
199 200
200 // Find the list of Web Intent tasks that can be used with the given file 201 // Find the list of Web Intent tasks that can be used with the given file
201 // types, appending them to the |result_list|. 202 // types, appending them to the |result_list|.
202 bool FindWebIntentTasks(const std::vector<GURL>& file_urls, 203 bool FindWebIntentTasks(const std::vector<FilePath>& file_paths,
203 ListValue* result_list); 204 ListValue* result_list);
204 205
205 // Find the list of app file handlers that can be used with the given file 206 // Find the list of app file handlers that can be used with the given file
206 // types, appending them to the |result_list|. 207 // types, appending them to the |result_list|.
207 bool FindAppTasks(const std::vector<GURL>& file_urls, 208 bool FindAppTasks(const std::vector<FilePath>& file_paths,
208 ListValue* result_list); 209 ListValue* result_list);
209 }; 210 };
210 211
211 // Implements the chrome.fileBrowserPrivate.executeTask method. 212 // Implements the chrome.fileBrowserPrivate.executeTask method.
212 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { 213 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction {
213 public: 214 public:
214 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask", 215 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.executeTask",
215 FILEBROWSERPRIVATE_EXECUTETASK) 216 FILEBROWSERPRIVATE_EXECUTETASK)
216 217
217 ExecuteTasksFileBrowserFunction(); 218 ExecuteTasksFileBrowserFunction();
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 virtual bool RunImpl() OVERRIDE; 832 virtual bool RunImpl() OVERRIDE;
832 833
833 // extensions::ZipFileCreator::Delegate overrides. 834 // extensions::ZipFileCreator::Delegate overrides.
834 virtual void OnZipDone(bool success) OVERRIDE; 835 virtual void OnZipDone(bool success) OVERRIDE;
835 836
836 private: 837 private:
837 scoped_refptr<extensions::ZipFileCreator> zip_file_creator_; 838 scoped_refptr<extensions::ZipFileCreator> zip_file_creator_;
838 }; 839 };
839 840
840 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 841 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_task_executor.cc ('k') | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698