OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 virtual bool SupportsStreaming( | 48 virtual bool SupportsStreaming( |
49 const fileapi::FileSystemURL& url) const OVERRIDE; | 49 const fileapi::FileSystemURL& url) const OVERRIDE; |
50 | 50 |
51 virtual bool HasInplaceCopyImplementation( | 51 virtual bool HasInplaceCopyImplementation( |
52 fileapi::FileSystemType type) const OVERRIDE; | 52 fileapi::FileSystemType type) const OVERRIDE; |
53 | 53 |
54 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( | 54 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( |
55 const fileapi::FileSystemURL& url, | 55 const fileapi::FileSystemURL& url, |
56 int64 offset, | 56 int64 offset, |
| 57 int64 length, |
57 const base::Time& expected_modification_time, | 58 const base::Time& expected_modification_time, |
58 fileapi::FileSystemContext* context) const OVERRIDE; | 59 fileapi::FileSystemContext* context) const OVERRIDE; |
59 | 60 |
60 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( | 61 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( |
61 const fileapi::FileSystemURL& url, | 62 const fileapi::FileSystemURL& url, |
62 int64 offset, | 63 int64 offset, |
63 fileapi::FileSystemContext* context) const OVERRIDE; | 64 fileapi::FileSystemContext* context) const OVERRIDE; |
64 | 65 |
65 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; | 66 virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; |
66 | 67 |
67 private: | 68 private: |
68 // User mount points. | 69 // User mount points. |
69 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; | 70 scoped_refptr<fileapi::ExternalMountPoints> mount_points_; |
70 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; | 71 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; |
71 }; | 72 }; |
72 | 73 |
73 } // namespace local_discovery | 74 } // namespace local_discovery |
74 | 75 |
75 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ | 76 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ |
OLD | NEW |