| 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_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 6 #define WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 FileSystemContext* context) const OVERRIDE; | 69 FileSystemContext* context) const OVERRIDE; |
| 70 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 70 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
| 71 virtual void DeleteFileSystem( | 71 virtual void DeleteFileSystem( |
| 72 const GURL& origin_url, | 72 const GURL& origin_url, |
| 73 FileSystemType type, | 73 FileSystemType type, |
| 74 FileSystemContext* context, | 74 FileSystemContext* context, |
| 75 const DeleteFileSystemCallback& callback) OVERRIDE; | 75 const DeleteFileSystemCallback& callback) OVERRIDE; |
| 76 | 76 |
| 77 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; | 77 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; |
| 78 | 78 |
| 79 // For CopyOrMoveFileValidatorFactory testing. Once it's set to true |
| 80 // GetCopyOrMoveFileValidatorFactory will start returning security |
| 81 // error if validator is not initialized. |
| 82 void set_require_copy_or_move_validator(bool flag) { |
| 83 require_copy_or_move_validator_ = flag; |
| 84 } |
| 85 |
| 79 private: | 86 private: |
| 80 class QuotaUtil; | 87 class QuotaUtil; |
| 81 | 88 |
| 82 base::FilePath base_path_; | 89 base::FilePath base_path_; |
| 83 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 90 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 84 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; | 91 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; |
| 85 scoped_ptr<QuotaUtil> quota_util_; | 92 scoped_ptr<QuotaUtil> quota_util_; |
| 86 UpdateObserverList observers_; | 93 UpdateObserverList observers_; |
| 94 |
| 95 bool require_copy_or_move_validator_; |
| 96 scoped_ptr<CopyOrMoveFileValidatorFactory> |
| 97 copy_or_move_file_validator_factory_; |
| 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(TestMountPointProvider); |
| 87 }; | 100 }; |
| 88 | 101 |
| 89 } // namespace fileapi | 102 } // namespace fileapi |
| 90 | 103 |
| 91 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ | 104 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |