| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "webkit/fileapi/file_system_mount_point_provider.h" | 16 #include "webkit/fileapi/file_system_mount_point_provider.h" |
| 17 #include "webkit/fileapi/fileapi_export.h" | |
| 18 #include "webkit/quota/special_storage_policy.h" | 17 #include "webkit/quota/special_storage_policy.h" |
| 18 #include "webkit/storage/webkit_storage_export.h" |
| 19 | 19 |
| 20 namespace fileapi { | 20 namespace fileapi { |
| 21 class FileSystemFileUtil; | 21 class FileSystemFileUtil; |
| 22 class IsolatedContext; | 22 class IsolatedContext; |
| 23 class LocalFileUtil; | 23 class LocalFileUtil; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace chromeos { | 26 namespace chromeos { |
| 27 | 27 |
| 28 class FileAccessPermissions; | 28 class FileAccessPermissions; |
| 29 | 29 |
| 30 // An interface to provide local filesystem paths. | 30 // An interface to provide local filesystem paths. |
| 31 class FILEAPI_EXPORT CrosMountPointProvider | 31 class WEBKIT_STORAGE_EXPORT CrosMountPointProvider |
| 32 : public fileapi::ExternalFileSystemMountPointProvider { | 32 : public fileapi::ExternalFileSystemMountPointProvider { |
| 33 public: | 33 public: |
| 34 using fileapi::FileSystemMountPointProvider::ValidateFileSystemCallback; | 34 using fileapi::FileSystemMountPointProvider::ValidateFileSystemCallback; |
| 35 using fileapi::FileSystemMountPointProvider::DeleteFileSystemCallback; | 35 using fileapi::FileSystemMountPointProvider::DeleteFileSystemCallback; |
| 36 | 36 |
| 37 CrosMountPointProvider( | 37 CrosMountPointProvider( |
| 38 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); | 38 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); |
| 39 virtual ~CrosMountPointProvider(); | 39 virtual ~CrosMountPointProvider(); |
| 40 | 40 |
| 41 // Returns true if CrosMountpointProvider can handle |url|, i.e. its | 41 // Returns true if CrosMountpointProvider can handle |url|, i.e. its |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 116 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
| 117 scoped_ptr<FileAccessPermissions> file_access_permissions_; | 117 scoped_ptr<FileAccessPermissions> file_access_permissions_; |
| 118 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; | 118 scoped_ptr<fileapi::LocalFileUtil> local_file_util_; |
| 119 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); | 119 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace chromeos | 122 } // namespace chromeos |
| 123 | 123 |
| 124 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 124 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |