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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This file provides file system related API functions. 5 // This file provides file system related API functions.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_ 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYSTEM_ H_
9 9
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 34
35 protected: 35 protected:
36 virtual ~FileBrowserPrivateRequestFileSystemFunction() {} 36 virtual ~FileBrowserPrivateRequestFileSystemFunction() {}
37 37
38 // AsyncExtensionFunction overrides. 38 // AsyncExtensionFunction overrides.
39 virtual bool RunImpl() OVERRIDE; 39 virtual bool RunImpl() OVERRIDE;
40 40
41 private: 41 private:
42 void RespondSuccessOnUIThread(const std::string& name, 42 void RespondSuccessOnUIThread(const std::string& name,
43 const GURL& root_url); 43 const GURL& root_url);
44 void RespondFailedOnUIThread(base::PlatformFileError error_code); 44 void RespondFailedOnUIThread(base::File::Error error_code);
45 45
46 // Called when something goes wrong. Records the error to |error_| per the 46 // Called when something goes wrong. Records the error to |error_| per the
47 // error code and reports that the private API function failed. 47 // error code and reports that the private API function failed.
48 void DidFail(base::PlatformFileError error_code); 48 void DidFail(base::File::Error error_code);
49 49
50 // Sets up file system access permissions to the extension identified by 50 // Sets up file system access permissions to the extension identified by
51 // |child_id|. 51 // |child_id|.
52 bool SetupFileSystemAccessPermissions( 52 bool SetupFileSystemAccessPermissions(
53 scoped_refptr<fileapi::FileSystemContext> file_system_context, 53 scoped_refptr<fileapi::FileSystemContext> file_system_context,
54 int child_id, 54 int child_id,
55 scoped_refptr<const extensions::Extension> extension); 55 scoped_refptr<const extensions::Extension> extension);
56 }; 56 };
57 57
58 // Base class for FileBrowserPrivateAddFileWatchFunction and 58 // Base class for FileBrowserPrivateAddFileWatchFunction and
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 protected: 192 protected:
193 virtual ~FileBrowserPrivateCancelCopyFunction() {} 193 virtual ~FileBrowserPrivateCancelCopyFunction() {}
194 194
195 // AsyncExtensionFunction overrides. 195 // AsyncExtensionFunction overrides.
196 virtual bool RunImpl() OVERRIDE; 196 virtual bool RunImpl() OVERRIDE;
197 }; 197 };
198 198
199 } // namespace extensions 199 } // namespace extensions
200 200
201 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_ 201 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_FILE_SYST EM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698