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

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

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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 10 matching lines...) Expand all
21 } 21 }
22 22
23 namespace chromeos { 23 namespace chromeos {
24 24
25 class FileAccessPermissions; 25 class FileAccessPermissions;
26 26
27 // An interface to provide local filesystem paths. 27 // An interface to provide local filesystem paths.
28 class CrosMountPointProvider 28 class CrosMountPointProvider
29 : public fileapi::ExternalFileSystemMountPointProvider { 29 : public fileapi::ExternalFileSystemMountPointProvider {
30 public: 30 public:
31 typedef fileapi::FileSystemMountPointProvider::GetRootPathCallback 31 typedef fileapi::FileSystemMountPointProvider::ValidateFileSystemCallback
32 GetRootPathCallback; 32 ValidateFileSystemCallback;
33 33
34 CrosMountPointProvider( 34 CrosMountPointProvider(
35 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); 35 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy);
36 virtual ~CrosMountPointProvider(); 36 virtual ~CrosMountPointProvider();
37 37
38 // fileapi::FileSystemMountPointProvider overrides. 38 // fileapi::FileSystemMountPointProvider overrides.
39 virtual bool IsAccessAllowed(const GURL& origin_url, 39 virtual void ValidateFileSystemRoot(
40 fileapi::FileSystemType type,
41 const FilePath& virtual_path) OVERRIDE;
42 virtual void ValidateFileSystemRootAndGetURL(
43 const GURL& origin_url, 40 const GURL& origin_url,
44 fileapi::FileSystemType type, 41 fileapi::FileSystemType type,
45 bool create, 42 bool create,
46 const GetRootPathCallback& callback) 43 const ValidateFileSystemCallback& callback) OVERRIDE;
47 OVERRIDE; 44 virtual FilePath GetFileSystemRootPathOnFileThread(
48 virtual FilePath ValidateFileSystemRootAndGetPathOnFileThread(
49 const GURL& origin_url, 45 const GURL& origin_url,
50 fileapi::FileSystemType type, 46 fileapi::FileSystemType type,
51 const FilePath& virtual_path, 47 const FilePath& virtual_path,
52 bool create) OVERRIDE; 48 bool create) OVERRIDE;
49 virtual bool IsAccessAllowed(
50 const GURL& origin_url,
51 fileapi::FileSystemType type,
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 56
57 // fileapi::ExternalFileSystemMountPointProvider overrides. 57 // fileapi::ExternalFileSystemMountPointProvider overrides.
58 virtual void GrantFullAccessToExtension( 58 virtual void GrantFullAccessToExtension(
59 const std::string& extension_id) OVERRIDE; 59 const std::string& extension_id) OVERRIDE;
60 virtual void GrantFileAccessToExtension( 60 virtual void GrantFileAccessToExtension(
61 const std::string& extension_id, const FilePath& virtual_path) OVERRIDE; 61 const std::string& extension_id, const FilePath& virtual_path) OVERRIDE;
62 virtual void RevokeAccessForExtension( 62 virtual void RevokeAccessForExtension(
(...skipping 15 matching lines...) Expand all
78 MountPointMap mount_point_map_; 78 MountPointMap mount_point_map_;
79 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 79 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
80 scoped_ptr<FileAccessPermissions> file_access_permissions_; 80 scoped_ptr<FileAccessPermissions> file_access_permissions_;
81 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; 81 scoped_ptr<fileapi::LocalFileUtil> local_file_util_;
82 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); 82 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider);
83 }; 83 };
84 84
85 } // namespace chromeos 85 } // namespace chromeos
86 86
87 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 87 #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