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

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

Issue 306073004: Rename "CheckWritable" to "PrepareForWritableApp" to reflect the actual behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments. Created 6 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 | 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_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 <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class FileSystemEntryFunction : public ChromeAsyncExtensionFunction { 46 class FileSystemEntryFunction : public ChromeAsyncExtensionFunction {
47 protected: 47 protected:
48 FileSystemEntryFunction(); 48 FileSystemEntryFunction();
49 49
50 virtual ~FileSystemEntryFunction() {} 50 virtual ~FileSystemEntryFunction() {}
51 51
52 // This is called when writable file entries are being returned. The function 52 // This is called when writable file entries are being returned. The function
53 // will ensure the files exist, creating them if necessary, and also check 53 // will ensure the files exist, creating them if necessary, and also check
54 // that none of the files are links. If it succeeds it proceeds to 54 // that none of the files are links. If it succeeds it proceeds to
55 // RegisterFileSystemsAndSendResponse, otherwise to HandleWritableFileError. 55 // RegisterFileSystemsAndSendResponse, otherwise to HandleWritableFileError.
56 void CheckWritableFiles(const std::vector<base::FilePath>& path); 56 void PrepareFilesForWritableApp(const std::vector<base::FilePath>& path);
57 57
58 // This will finish the choose file process. This is either called directly 58 // This will finish the choose file process. This is either called directly
59 // from FilesSelected, or from WritableFileChecker. It is called on the UI 59 // from FilesSelected, or from WritableFileChecker. It is called on the UI
60 // thread. 60 // thread.
61 void RegisterFileSystemsAndSendResponse( 61 void RegisterFileSystemsAndSendResponse(
62 const std::vector<base::FilePath>& path); 62 const std::vector<base::FilePath>& path);
63 63
64 // Creates a response dictionary and sets it as the response to be sent. 64 // Creates a response dictionary and sets it as the response to be sent.
65 void CreateResponse(); 65 void CreateResponse();
66 66
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 DECLARE_EXTENSION_FUNCTION("fileSystem.restoreEntry", FILESYSTEM_RESTOREENTRY) 207 DECLARE_EXTENSION_FUNCTION("fileSystem.restoreEntry", FILESYSTEM_RESTOREENTRY)
208 208
209 protected: 209 protected:
210 virtual ~FileSystemRestoreEntryFunction() {} 210 virtual ~FileSystemRestoreEntryFunction() {}
211 virtual bool RunAsync() OVERRIDE; 211 virtual bool RunAsync() OVERRIDE;
212 }; 212 };
213 213
214 } // namespace extensions 214 } // namespace extensions
215 215
216 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_ 216 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_FILE_SYSTEM_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698