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

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

Issue 11098067: fileapi: Add modification time check for FileSystemFileStreamReader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix leak in test Created 8 years, 2 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/file_path.h" 8 #include "base/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; 51 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
52 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path) 52 virtual FilePath GetPathForPermissionsCheck(const FilePath& virtual_path)
53 const OVERRIDE; 53 const OVERRIDE;
54 virtual FileSystemOperation* CreateFileSystemOperation( 54 virtual FileSystemOperation* CreateFileSystemOperation(
55 const FileSystemURL& url, 55 const FileSystemURL& url,
56 FileSystemContext* context, 56 FileSystemContext* context,
57 base::PlatformFileError* error_code) const OVERRIDE; 57 base::PlatformFileError* error_code) const OVERRIDE;
58 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 58 virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
59 const FileSystemURL& url, 59 const FileSystemURL& url,
60 int64 offset, 60 int64 offset,
61 const base::Time& expected_modification_time,
61 FileSystemContext* context) const OVERRIDE; 62 FileSystemContext* context) const OVERRIDE;
62 virtual FileStreamWriter* CreateFileStreamWriter( 63 virtual FileStreamWriter* CreateFileStreamWriter(
63 const FileSystemURL& url, 64 const FileSystemURL& url,
64 int64 offset, 65 int64 offset,
65 FileSystemContext* context) const OVERRIDE; 66 FileSystemContext* context) const OVERRIDE;
66 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 67 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
67 virtual void DeleteFileSystem( 68 virtual void DeleteFileSystem(
68 const GURL& origin_url, 69 const GURL& origin_url,
69 FileSystemType type, 70 FileSystemType type,
70 FileSystemContext* context, 71 FileSystemContext* context,
71 const DeleteFileSystemCallback& callback) OVERRIDE; 72 const DeleteFileSystemCallback& callback) OVERRIDE;
72 73
73 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; 74 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const;
74 75
75 private: 76 private:
76 class QuotaUtil; 77 class QuotaUtil;
77 78
78 FilePath base_path_; 79 FilePath base_path_;
79 scoped_refptr<base::SequencedTaskRunner> task_runner_; 80 scoped_refptr<base::SequencedTaskRunner> task_runner_;
80 scoped_ptr<LocalFileUtil> local_file_util_; 81 scoped_ptr<LocalFileUtil> local_file_util_;
81 scoped_ptr<QuotaUtil> quota_util_; 82 scoped_ptr<QuotaUtil> quota_util_;
82 UpdateObserverList observers_; 83 UpdateObserverList observers_;
83 }; 84 };
84 85
85 } // namespace fileapi 86 } // namespace fileapi
86 87
87 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ 88 #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