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

Side by Side Diff: chrome/browser/extensions/api/file_system/file_system_api.h

Issue 2877343003: Switch browser/extensions/api/file_system/file_system_api.[h|cc] to the TaskScheduler API (Closed)
Patch Set: Address Francois' comments. Created 3 years, 7 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_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 public: 193 public:
194 DECLARE_EXTENSION_FUNCTION("fileSystem.getWritableEntry", 194 DECLARE_EXTENSION_FUNCTION("fileSystem.getWritableEntry",
195 FILESYSTEM_GETWRITABLEENTRY) 195 FILESYSTEM_GETWRITABLEENTRY)
196 196
197 protected: 197 protected:
198 ~FileSystemGetWritableEntryFunction() override {} 198 ~FileSystemGetWritableEntryFunction() override {}
199 bool RunAsync() override; 199 bool RunAsync() override;
200 200
201 private: 201 private:
202 void CheckPermissionAndSendResponse(); 202 void CheckPermissionAndSendResponse();
203 void SetIsDirectoryOnFileThread(); 203 void SetIsDirectoryAsync();
204 204
205 // The path to the file for which a writable entry has been requested. 205 // The path to the file for which a writable entry has been requested.
206 base::FilePath path_; 206 base::FilePath path_;
207 }; 207 };
208 208
209 class FileSystemIsWritableEntryFunction : public UIThreadExtensionFunction { 209 class FileSystemIsWritableEntryFunction : public UIThreadExtensionFunction {
210 public: 210 public:
211 DECLARE_EXTENSION_FUNCTION("fileSystem.isWritableEntry", 211 DECLARE_EXTENSION_FUNCTION("fileSystem.isWritableEntry",
212 FILESYSTEM_ISWRITABLEENTRY) 212 FILESYSTEM_ISWRITABLEENTRY)
213 213
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 ExtensionFunction::ResponseAction Run() override; 412 ExtensionFunction::ResponseAction Run() override;
413 413
414 private: 414 private:
415 ChromeExtensionFunctionDetails chrome_details_; 415 ChromeExtensionFunctionDetails chrome_details_;
416 }; 416 };
417 #endif 417 #endif
418 418
419 } // namespace extensions 419 } // namespace extensions
420 420
421 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 421 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698