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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « webkit/fileapi/test_file_set.cc ('k') | webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12 matching lines...) Expand all
23 class FileSystemQuotaUtil; 23 class FileSystemQuotaUtil;
24 24
25 // This should be only used for testing. 25 // This should be only used for testing.
26 // This mount point provider uses LocalFileUtil and stores data file 26 // This mount point provider uses LocalFileUtil and stores data file
27 // under the given directory. 27 // under the given directory.
28 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider 28 class WEBKIT_STORAGE_EXPORT_PRIVATE TestMountPointProvider
29 : public FileSystemMountPointProvider { 29 : public FileSystemMountPointProvider {
30 public: 30 public:
31 TestMountPointProvider( 31 TestMountPointProvider(
32 base::SequencedTaskRunner* task_runner, 32 base::SequencedTaskRunner* task_runner,
33 const FilePath& base_path); 33 const base::FilePath& base_path);
34 virtual ~TestMountPointProvider(); 34 virtual ~TestMountPointProvider();
35 35
36 // FileSystemMountPointProvider implementation. 36 // FileSystemMountPointProvider implementation.
37 virtual void ValidateFileSystemRoot( 37 virtual void ValidateFileSystemRoot(
38 const GURL& origin_url, 38 const GURL& origin_url,
39 FileSystemType type, 39 FileSystemType type,
40 bool create, 40 bool create,
41 const ValidateFileSystemCallback& callback) OVERRIDE; 41 const ValidateFileSystemCallback& callback) OVERRIDE;
42 virtual FilePath GetFileSystemRootPathOnFileThread( 42 virtual base::FilePath GetFileSystemRootPathOnFileThread(
43 const FileSystemURL& url, 43 const FileSystemURL& url,
44 bool create) OVERRIDE; 44 bool create) OVERRIDE;
45 virtual bool IsAccessAllowed(const FileSystemURL& url) OVERRIDE; 45 virtual bool IsAccessAllowed(const FileSystemURL& url) OVERRIDE;
46 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; 46 virtual bool IsRestrictedFileName(const base::FilePath& filename) const OVERRI DE;
47 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE; 47 virtual FileSystemFileUtil* GetFileUtil(FileSystemType type) OVERRIDE;
48 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; 48 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
49 virtual FilePermissionPolicy GetPermissionPolicy( 49 virtual FilePermissionPolicy GetPermissionPolicy(
50 const FileSystemURL& url, 50 const FileSystemURL& url,
51 int permissions) const OVERRIDE; 51 int permissions) const OVERRIDE;
52 virtual FileSystemOperation* CreateFileSystemOperation( 52 virtual FileSystemOperation* CreateFileSystemOperation(
53 const FileSystemURL& url, 53 const FileSystemURL& url,
54 FileSystemContext* context, 54 FileSystemContext* context,
55 base::PlatformFileError* error_code) const OVERRIDE; 55 base::PlatformFileError* error_code) const OVERRIDE;
56 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 56 virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
(...skipping 10 matching lines...) Expand all
67 const GURL& origin_url, 67 const GURL& origin_url,
68 FileSystemType type, 68 FileSystemType type,
69 FileSystemContext* context, 69 FileSystemContext* context,
70 const DeleteFileSystemCallback& callback) OVERRIDE; 70 const DeleteFileSystemCallback& callback) OVERRIDE;
71 71
72 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const; 72 const UpdateObserverList* GetUpdateObservers(FileSystemType type) const;
73 73
74 private: 74 private:
75 class QuotaUtil; 75 class QuotaUtil;
76 76
77 FilePath base_path_; 77 base::FilePath base_path_;
78 scoped_refptr<base::SequencedTaskRunner> task_runner_; 78 scoped_refptr<base::SequencedTaskRunner> task_runner_;
79 scoped_ptr<AsyncFileUtilAdapter> local_file_util_; 79 scoped_ptr<AsyncFileUtilAdapter> local_file_util_;
80 scoped_ptr<QuotaUtil> quota_util_; 80 scoped_ptr<QuotaUtil> quota_util_;
81 UpdateObserverList observers_; 81 UpdateObserverList observers_;
82 }; 82 };
83 83
84 } // namespace fileapi 84 } // namespace fileapi
85 85
86 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_ 86 #endif // WEBKIT_FILEAPI_TEST_MOUNT_POINT_PROVIDER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/test_file_set.cc ('k') | webkit/fileapi/test_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698