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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.h

Issue 9372044: Refactor FileSystemOperation to take callback for each method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflected kinuko's comments + Fixture for failing-Write -> Cancel pattern. Created 8 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 (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 WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const GURL& origin_url, 50 const GURL& origin_url,
51 fileapi::FileSystemType type, 51 fileapi::FileSystemType type,
52 const FilePath& virtual_path) OVERRIDE; 52 const FilePath& virtual_path) OVERRIDE;
53 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; 53 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE;
54 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE; 54 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE;
55 virtual fileapi::FileSystemFileUtil* GetFileUtil() OVERRIDE; 55 virtual fileapi::FileSystemFileUtil* GetFileUtil() OVERRIDE;
56 virtual fileapi::FileSystemOperationInterface* CreateFileSystemOperation( 56 virtual fileapi::FileSystemOperationInterface* CreateFileSystemOperation(
57 const GURL& origin_url, 57 const GURL& origin_url,
58 fileapi::FileSystemType file_system_type, 58 fileapi::FileSystemType file_system_type,
59 const FilePath& virtual_path, 59 const FilePath& virtual_path,
60 scoped_ptr<fileapi::FileSystemCallbackDispatcher> dispatcher,
61 base::MessageLoopProxy* file_proxy, 60 base::MessageLoopProxy* file_proxy,
62 fileapi::FileSystemContext* context) const OVERRIDE; 61 fileapi::FileSystemContext* context) const OVERRIDE;
63 62
64 // fileapi::ExternalFileSystemMountPointProvider overrides. 63 // fileapi::ExternalFileSystemMountPointProvider overrides.
65 virtual void GrantFullAccessToExtension( 64 virtual void GrantFullAccessToExtension(
66 const std::string& extension_id) OVERRIDE; 65 const std::string& extension_id) OVERRIDE;
67 virtual void GrantFileAccessToExtension( 66 virtual void GrantFileAccessToExtension(
68 const std::string& extension_id, const FilePath& virtual_path) OVERRIDE; 67 const std::string& extension_id, const FilePath& virtual_path) OVERRIDE;
69 virtual void RevokeAccessForExtension( 68 virtual void RevokeAccessForExtension(
70 const std::string& extension_id) OVERRIDE; 69 const std::string& extension_id) OVERRIDE;
(...skipping 14 matching lines...) Expand all
85 MountPointMap mount_point_map_; 84 MountPointMap mount_point_map_;
86 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 85 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
87 scoped_ptr<FileAccessPermissions> file_access_permissions_; 86 scoped_ptr<FileAccessPermissions> file_access_permissions_;
88 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; 87 scoped_ptr<fileapi::LocalFileUtil> local_file_util_;
89 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); 88 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider);
90 }; 89 };
91 90
92 } // namespace chromeos 91 } // namespace chromeos
93 92
94 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 93 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/file_system/file_system_dispatcher_host.cc ('k') | webkit/chromeos/fileapi/cros_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698