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

Side by Side Diff: webkit/browser/fileapi/test_file_system_backend.h

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add Initialize() Created 7 years, 5 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_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_BROWSER_FILEAPI_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 17 matching lines...) Expand all
28 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE TestFileSystemBackend 28 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE TestFileSystemBackend
29 : public FileSystemBackend { 29 : public FileSystemBackend {
30 public: 30 public:
31 TestFileSystemBackend( 31 TestFileSystemBackend(
32 base::SequencedTaskRunner* task_runner, 32 base::SequencedTaskRunner* task_runner,
33 const base::FilePath& base_path); 33 const base::FilePath& base_path);
34 virtual ~TestFileSystemBackend(); 34 virtual ~TestFileSystemBackend();
35 35
36 // FileSystemBackend implementation. 36 // FileSystemBackend implementation.
37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; 37 virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
38 virtual void Initialize(const FileSystemContext* context) OVERRIDE;
38 virtual void InitializeFileSystem( 39 virtual void InitializeFileSystem(
39 const GURL& origin_url, 40 const GURL& origin_url,
40 FileSystemType type, 41 FileSystemType type,
41 OpenFileSystemMode mode, 42 OpenFileSystemMode mode,
42 FileSystemContext* context, 43 FileSystemContext* context,
43 const InitializeFileSystemCallback& callback) OVERRIDE; 44 const InitializeFileSystemCallback& callback) OVERRIDE;
44 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; 45 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
45 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; 46 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
46 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 47 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
47 FileSystemType type, 48 FileSystemType type,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool require_copy_or_move_validator_; 88 bool require_copy_or_move_validator_;
88 scoped_ptr<CopyOrMoveFileValidatorFactory> 89 scoped_ptr<CopyOrMoveFileValidatorFactory>
89 copy_or_move_file_validator_factory_; 90 copy_or_move_file_validator_factory_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend); 92 DISALLOW_COPY_AND_ASSIGN(TestFileSystemBackend);
92 }; 93 };
93 94
94 } // namespace fileapi 95 } // namespace fileapi
95 96
96 #endif // WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_ 97 #endif // WEBKIT_BROWSER_FILEAPI_TEST_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698