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

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

Issue 2951003002: SavedFilesService interface in //extensions (Closed)
Patch Set: cleanup Created 3 years, 6 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 class FileSystemRetainEntryFunction : public ChromeAsyncExtensionFunction { 190 class FileSystemRetainEntryFunction : public ChromeAsyncExtensionFunction {
191 public: 191 public:
192 DECLARE_EXTENSION_FUNCTION("fileSystem.retainEntry", FILESYSTEM_RETAINENTRY) 192 DECLARE_EXTENSION_FUNCTION("fileSystem.retainEntry", FILESYSTEM_RETAINENTRY)
193 193
194 protected: 194 protected:
195 ~FileSystemRetainEntryFunction() override {} 195 ~FileSystemRetainEntryFunction() override {}
196 bool RunAsync() override; 196 bool RunAsync() override;
197 197
198 private: 198 private:
199 // Retains the file entry referenced by |entry_id| in apps::SavedFilesService. 199 // Retains the file entry referenced by |entry_id| in
200 // |entry_id| must refer to an entry in an isolated file system. |path| is a 200 // apps::SavedFilesServiceImpl. |entry_id| must refer to an entry in an
201 // path of the entry. |file_info| is base::File::Info of the entry if it can 201 // isolated file system. |path| is a path of the entry. |file_info| is
202 // be obtained. 202 // base::File::Info of the entry if it can be obtained.
203 void RetainFileEntry(const std::string& entry_id, 203 void RetainFileEntry(const std::string& entry_id,
204 const base::FilePath& path, 204 const base::FilePath& path,
205 std::unique_ptr<base::File::Info> file_info); 205 std::unique_ptr<base::File::Info> file_info);
206 }; 206 };
207 207
208 class FileSystemIsRestorableFunction : public UIThreadExtensionFunction { 208 class FileSystemIsRestorableFunction : public UIThreadExtensionFunction {
209 public: 209 public:
210 DECLARE_EXTENSION_FUNCTION("fileSystem.isRestorable", FILESYSTEM_ISRESTORABLE) 210 DECLARE_EXTENSION_FUNCTION("fileSystem.isRestorable", FILESYSTEM_ISRESTORABLE)
211 211
212 protected: 212 protected:
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 ExtensionFunction::ResponseAction Run() override; 318 ExtensionFunction::ResponseAction Run() override;
319 319
320 private: 320 private:
321 ChromeExtensionFunctionDetails chrome_details_; 321 ChromeExtensionFunctionDetails chrome_details_;
322 }; 322 };
323 #endif 323 #endif
324 324
325 } // namespace extensions 325 } // namespace extensions
326 326
327 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 327 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698