OLD | NEW |
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_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_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_backend.h" | 10 #include "webkit/browser/fileapi/file_system_backend.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 MediaFileSystemBackend( | 32 MediaFileSystemBackend( |
33 const base::FilePath& profile_path, | 33 const base::FilePath& profile_path, |
34 base::SequencedTaskRunner* media_task_runner); | 34 base::SequencedTaskRunner* media_task_runner); |
35 virtual ~MediaFileSystemBackend(); | 35 virtual ~MediaFileSystemBackend(); |
36 | 36 |
37 static bool CurrentlyOnMediaTaskRunnerThread(); | 37 static bool CurrentlyOnMediaTaskRunnerThread(); |
38 static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner(); | 38 static scoped_refptr<base::SequencedTaskRunner> MediaTaskRunner(); |
39 | 39 |
40 // FileSystemBackend implementation. | 40 // FileSystemBackend implementation. |
41 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; | 41 virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE; |
42 virtual void InitializeFileSystem( | 42 virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE; |
| 43 virtual void OpenFileSystem( |
43 const GURL& origin_url, | 44 const GURL& origin_url, |
44 fileapi::FileSystemType type, | 45 fileapi::FileSystemType type, |
45 fileapi::OpenFileSystemMode mode, | 46 fileapi::OpenFileSystemMode mode, |
46 fileapi::FileSystemContext* context, | 47 const OpenFileSystemCallback& callback) OVERRIDE; |
47 const InitializeFileSystemCallback& callback) OVERRIDE; | |
48 virtual fileapi::FileSystemFileUtil* GetFileUtil( | 48 virtual fileapi::FileSystemFileUtil* GetFileUtil( |
49 fileapi::FileSystemType type) OVERRIDE; | 49 fileapi::FileSystemType type) OVERRIDE; |
50 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( | 50 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( |
51 fileapi::FileSystemType type) OVERRIDE; | 51 fileapi::FileSystemType type) OVERRIDE; |
52 virtual fileapi::CopyOrMoveFileValidatorFactory* | 52 virtual fileapi::CopyOrMoveFileValidatorFactory* |
53 GetCopyOrMoveFileValidatorFactory( | 53 GetCopyOrMoveFileValidatorFactory( |
54 fileapi::FileSystemType type, | 54 fileapi::FileSystemType type, |
55 base::PlatformFileError* error_code) OVERRIDE; | 55 base::PlatformFileError* error_code) OVERRIDE; |
56 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( | 56 virtual fileapi::FileSystemOperation* CreateFileSystemOperation( |
57 const fileapi::FileSystemURL& url, | 57 const fileapi::FileSystemURL& url, |
(...skipping 26 matching lines...) Expand all Loading... |
84 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_; | 84 scoped_ptr<fileapi::AsyncFileUtil> picasa_file_util_; |
85 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; | 85 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; |
86 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 86 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); | 88 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace chrome | 91 } // namespace chrome |
92 | 92 |
93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |