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

Side by Side Diff: webkit/fileapi/test_mount_point_provider.h

Issue 13811013: Refactor FileSystemMountPointProvider::CreateFileStream{Reader,Writer} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: conflict fix Created 7 years, 8 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_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void InitializeCopyOrMoveFileValidatorFactory( 50 virtual void InitializeCopyOrMoveFileValidatorFactory(
51 FileSystemType type, 51 FileSystemType type,
52 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE; 52 scoped_ptr<CopyOrMoveFileValidatorFactory> factory) OVERRIDE;
53 virtual FilePermissionPolicy GetPermissionPolicy( 53 virtual FilePermissionPolicy GetPermissionPolicy(
54 const FileSystemURL& url, 54 const FileSystemURL& url,
55 int permissions) const OVERRIDE; 55 int permissions) const OVERRIDE;
56 virtual FileSystemOperation* CreateFileSystemOperation( 56 virtual FileSystemOperation* CreateFileSystemOperation(
57 const FileSystemURL& url, 57 const FileSystemURL& url,
58 FileSystemContext* context, 58 FileSystemContext* context,
59 base::PlatformFileError* error_code) const OVERRIDE; 59 base::PlatformFileError* error_code) const OVERRIDE;
60 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 60 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
61 const FileSystemURL& url, 61 const FileSystemURL& url,
62 int64 offset, 62 int64 offset,
63 const base::Time& expected_modification_time, 63 const base::Time& expected_modification_time,
64 FileSystemContext* context) const OVERRIDE; 64 FileSystemContext* context) const OVERRIDE;
65 virtual FileStreamWriter* CreateFileStreamWriter( 65 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
66 const FileSystemURL& url, 66 const FileSystemURL& url,
67 int64 offset, 67 int64 offset,
68 FileSystemContext* context) const OVERRIDE; 68 FileSystemContext* context) const OVERRIDE;
69 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 69 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
70 virtual void DeleteFileSystem( 70 virtual void DeleteFileSystem(
71 const GURL& origin_url, 71 const GURL& origin_url,
72 FileSystemType type, 72 FileSystemType type,
73 FileSystemContext* context, 73 FileSystemContext* context,
74 const DeleteFileSystemCallback& callback) OVERRIDE; 74 const DeleteFileSystemCallback& callback) OVERRIDE;
75 75
76 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; 76 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const;
77 77
78 private: 78 private:
79 class QuotaUtil; 79 class QuotaUtil;
80 80
81 base::FilePath base_path_; 81 base::FilePath base_path_;
82 scoped_refptr<base::SequencedTaskRunner> task_runner_; 82 scoped_refptr<base::SequencedTaskRunner> task_runner_;
83 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; 83 scoped_ptr<AsyncFileUtilAdapter> local_file_util_;
84 scoped_ptr<QuotaUtil> quota_util_; 84 scoped_ptr<QuotaUtil> quota_util_;
85 UpdateObserverList observers_; 85 UpdateObserverList observers_;
86 }; 86 };
87 87
88 } // namespace fileapi 88 } // namespace fileapi
89 89
90 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ 90 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/sandbox_mount_point_provider.cc ('k') | webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698