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