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