OLD | NEW |
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 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_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 23 matching lines...) Expand all Loading... |
34 virtual ~TestFileSystemBackend(); | 34 virtual ~TestFileSystemBackend(); |
35 | 35 |
36 // FileSystemBackend implementation. | 36 // FileSystemBackend implementation. |
37 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; | 37 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; |
38 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; | 38 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; |
39 virtual void ResolveURL(const fileapi::FileSystemURL& url, | 39 virtual void ResolveURL(const fileapi::FileSystemURL& url, |
40 fileapi::OpenFileSystemMode mode, | 40 fileapi::OpenFileSystemMode mode, |
41 const OpenFileSystemCallback& callback) OVERRIDE; | 41 const OpenFileSystemCallback& callback) OVERRIDE; |
42 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( | 42 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( |
43 fileapi::FileSystemType type) OVERRIDE; | 43 fileapi::FileSystemType type) OVERRIDE; |
| 44 virtual fileapi::WatcherManager* GetWatcherManager( |
| 45 fileapi::FileSystemType type) OVERRIDE; |
44 virtual fileapi::CopyOrMoveFileValidatorFactory* | 46 virtual fileapi::CopyOrMoveFileValidatorFactory* |
45 GetCopyOrMoveFileValidatorFactory( | 47 GetCopyOrMoveFileValidatorFactory( |
46 fileapi::FileSystemType type, | 48 fileapi::FileSystemType type, |
47 base::File::Error* error_code) OVERRIDE; | 49 base::File::Error* error_code) OVERRIDE; |
48 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( | 50 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( |
49 const fileapi::FileSystemURL& url, | 51 const fileapi::FileSystemURL& url, |
50 fileapi::FileSystemContext* context, | 52 fileapi::FileSystemContext* context, |
51 base::File::Error* error_code) const OVERRIDE; | 53 base::File::Error* error_code) const OVERRIDE; |
52 virtual bool SupportsStreaming( | 54 virtual bool SupportsStreaming( |
53 const fileapi::FileSystemURL& url) const OVERRIDE; | 55 const fileapi::FileSystemURL& url) const OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
77 void set_require_copy_or_move_validator(bool flag) { | 79 void set_require_copy_or_move_validator(bool flag) { |
78 require_copy_or_move_validator_ = flag; | 80 require_copy_or_move_validator_ = flag; |
79 } | 81 } |
80 | 82 |
81 private: | 83 private: |
82 class QuotaUtil; | 84 class QuotaUtil; |
83 | 85 |
84 base::FilePath base_path_; | 86 base::FilePath base_path_; |
85 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 87 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
86 scoped_ptr<fileapi::AsyncFileUtilAdapter> file_util_; | 88 scoped_ptr<fileapi::AsyncFileUtilAdapter> file_util_; |
| 89 scoped_ptr<fileapi::WatcherManager> watcher_manager_; |
87 scoped_ptr<QuotaUtil> quota_util_; | 90 scoped_ptr<QuotaUtil> quota_util_; |
88 | 91 |
89 bool require_copy_or_move_validator_; | 92 bool require_copy_or_move_validator_; |
90 scoped_ptr<fileapi::CopyOrMoveFileValidatorFactory> | 93 scoped_ptr<fileapi::CopyOrMoveFileValidatorFactory> |
91 copy_or_move_file_validator_factory_; | 94 copy_or_move_file_validator_factory_; |
92 | 95 |
93 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); | 96 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); |
94 }; | 97 }; |
95 | 98 |
96 } // namespace content | 99 } // namespace content |
97 | 100 |
98 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ | 101 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |