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

Side by Side Diff: chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.h

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_MOUNT_POINT_PRO VIDER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_MOUNT_POINT_PRO VIDER_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_MOUNT_POINT_PRO VIDER_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_MOUNT_POINT_PRO VIDER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" 10 #include "webkit/browser/fileapi/file_system_mount_point_provider.h"
(...skipping 22 matching lines...) Expand all
33 MediaFileSystemMountPointProvider( 33 MediaFileSystemMountPointProvider(
34 const base::FilePath& profile_path, 34 const base::FilePath& profile_path,
35 base::SequencedTaskRunner* media_task_runner); 35 base::SequencedTaskRunner* media_task_runner);
36 virtual ~MediaFileSystemMountPointProvider(); 36 virtual ~MediaFileSystemMountPointProvider();
37 37
38 static bool CurrentlyOnMediaTaskRunnerThread(); 38 static bool CurrentlyOnMediaTaskRunnerThread();
39 static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner(); 39 static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner();
40 40
41 // FileSystemMountPointProvider implementation. 41 // FileSystemMountPointProvider implementation.
42 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; 42 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE;
43 virtual GURL GetRootURI(const GURL& origin_url,
44 fileapi::FileSystemType type) const OVERRIDE;
43 virtual void OpenFileSystem( 45 virtual void OpenFileSystem(
44 const GURL& origin_url, 46 const GURL& origin_url,
45 fileapi::FileSystemType type, 47 fileapi::FileSystemType type,
46 fileapi::OpenFileSystemMode mode, 48 fileapi::OpenFileSystemMode mode,
47 const OpenFileSystemCallback& callback) OVERRIDE; 49 const OpenFileSystemCallback& callback) OVERRIDE;
48 virtual fileapi::FileSystemFileUtil* GetFileUtil( 50 virtual fileapi::FileSystemFileUtil* GetFileUtil(
49 fileapi::FileSystemType type) OVERRIDE; 51 fileapi::FileSystemType type) OVERRIDE;
50 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 52 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
51 fileapi::FileSystemType type) OVERRIDE; 53 fileapi::FileSystemType type) OVERRIDE;
52 virtual fileapi::CopyOrMoveFileValidatorFactory* 54 virtual fileapi::CopyOrMoveFileValidatorFactory*
53 GetCopyOrMoveFileValidatorFactory( 55 GetCopyOrMoveFileValidatorFactory(
54 fileapi::FileSystemType type, 56 fileapi::FileSystemType type,
55 base::PlatformFileError* error_code) OVERRIDE; 57 base::PlatformFileError* error_code) OVERRIDE;
56 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( 58 virtual fileapi::FileSystemOperation* CreateFileSystemOperation(
57 const fileapi::FileSystemURL& url, 59 const fileapi::FileSystemURL& url,
58 fileapi::FileSystemContext* context, 60 fileapi::FileSystemContext* context,
59 base::PlatformFileError* error_code) const OVERRIDE; 61 base::PlatformFileError* error_code) const OVERRIDE;
60 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 62 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
61 const fileapi::FileSystemURL& url, 63 const fileapi::FileSystemURL& url,
62 int64 offset, 64 int64 offset,
63 const base::Time& expected_modification_time, 65 const base::Time& expected_modification_time,
64 fileapi::FileSystemContext* context) const OVERRIDE; 66 fileapi::FileSystemContext* context) const OVERRIDE;
65 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( 67 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
66 const fileapi::FileSystemURL& url, 68 const fileapi::FileSystemURL& url,
67 int64 offset, 69 int64 offset,
68 fileapi::FileSystemContext* context) const OVERRIDE; 70 fileapi::FileSystemContext* context) const OVERRIDE;
69 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 71 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
72 virtual const fileapi::UpdateObserverList* GetUpdateObservers(
73 fileapi::FileSystemType type) const OVERRIDE;
70 74
71 private: 75 private:
72 // Store the profile path. We need this to create temporary snapshot files. 76 // Store the profile path. We need this to create temporary snapshot files.
73 const base::FilePath profile_path_; 77 const base::FilePath profile_path_;
74 78
75 scoped_refptr<base::SequencedTaskRunner> media_task_runner_; 79 scoped_refptr<base::SequencedTaskRunner> media_task_runner_;
76 80
77 scoped_ptr<MediaPathFilter> media_path_filter_; 81 scoped_ptr<MediaPathFilter> media_path_filter_;
78 scoped_ptr<fileapi::CopyOrMoveFileValidatorFactory> 82 scoped_ptr<fileapi::CopyOrMoveFileValidatorFactory>
79 media_copy_or_move_file_validator_factory_; 83 media_copy_or_move_file_validator_factory_;
80 84
81 scoped_ptr<fileapi::AsyncFileUtil> native_media_file_util_; 85 scoped_ptr<fileapi::AsyncFileUtil> native_media_file_util_;
82 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; 86 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
83 #if defined(OS_WIN) || defined(OS_MACOSX) 87 #if defined(OS_WIN) || defined(OS_MACOSX)
84 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_; 88 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_;
85 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; 89 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_;
86 #endif // defined(OS_WIN) || defined(OS_MACOSX) 90 #endif // defined(OS_WIN) || defined(OS_MACOSX)
87 91
88 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemMountPointProvider); 92 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemMountPointProvider);
89 }; 93 };
90 94
91 } // namespace chrome 95 } // namespace chrome
92 96
93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_MOUNT_POINT_ PROVIDER_H_ 97 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_MOUNT_POINT_ PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698