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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const fileapi::FileSystemURL& url, | 69 const fileapi::FileSystemURL& url, |
70 fileapi::FileSystemContext* context, | 70 fileapi::FileSystemContext* context, |
71 base::File::Error* error_code) const OVERRIDE; | 71 base::File::Error* error_code) const OVERRIDE; |
72 virtual bool SupportsStreaming( | 72 virtual bool SupportsStreaming( |
73 const fileapi::FileSystemURL& url) const OVERRIDE; | 73 const fileapi::FileSystemURL& url) const OVERRIDE; |
74 virtual bool HasInplaceCopyImplementation( | 74 virtual bool HasInplaceCopyImplementation( |
75 fileapi::FileSystemType type) const OVERRIDE; | 75 fileapi::FileSystemType type) const OVERRIDE; |
76 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 76 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
77 const fileapi::FileSystemURL& url, | 77 const fileapi::FileSystemURL& url, |
78 int64 offset, | 78 int64 offset, |
| 79 int64 length, |
79 const base::Time& expected_modification_time, | 80 const base::Time& expected_modification_time, |
80 fileapi::FileSystemContext* context) const OVERRIDE; | 81 fileapi::FileSystemContext* context) const OVERRIDE; |
81 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( | 82 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( |
82 const fileapi::FileSystemURL& url, | 83 const fileapi::FileSystemURL& url, |
83 int64 offset, | 84 int64 offset, |
84 fileapi::FileSystemContext* context) const OVERRIDE; | 85 fileapi::FileSystemContext* context) const OVERRIDE; |
85 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 86 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
86 | 87 |
87 private: | 88 private: |
88 // Store the profile path. We need this to create temporary snapshot files. | 89 // Store the profile path. We need this to create temporary snapshot files. |
(...skipping 12 matching lines...) Expand all Loading... |
101 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; | 102 scoped_ptr<fileapi::AsyncFileUtil> itunes_file_util_; |
102 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 103 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
103 #if defined(OS_MACOSX) | 104 #if defined(OS_MACOSX) |
104 scoped_ptr<fileapi::AsyncFileUtil> iphoto_file_util_; | 105 scoped_ptr<fileapi::AsyncFileUtil> iphoto_file_util_; |
105 #endif // defined(OS_MACOSX) | 106 #endif // defined(OS_MACOSX) |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); | 108 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemBackend); |
108 }; | 109 }; |
109 | 110 |
110 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ | 111 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MEDIA_FILE_SYSTEM_BACKEND_H_ |
OLD | NEW |