Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: chrome/browser/chromeos/fileapi/file_system_backend.h

Issue 470323003: [fsp] Improve performance for reading small chunks of data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const storage::FileSystemURL& url, 103 const storage::FileSystemURL& url,
104 storage::FileSystemContext* context, 104 storage::FileSystemContext* context,
105 base::File::Error* error_code) const OVERRIDE; 105 base::File::Error* error_code) const OVERRIDE;
106 virtual bool SupportsStreaming( 106 virtual bool SupportsStreaming(
107 const storage::FileSystemURL& url) const OVERRIDE; 107 const storage::FileSystemURL& url) const OVERRIDE;
108 virtual bool HasInplaceCopyImplementation( 108 virtual bool HasInplaceCopyImplementation(
109 storage::FileSystemType type) const OVERRIDE; 109 storage::FileSystemType type) const OVERRIDE;
110 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 110 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
111 const storage::FileSystemURL& path, 111 const storage::FileSystemURL& path,
112 int64 offset, 112 int64 offset,
113 int64 max_bytes_to_read,
113 const base::Time& expected_modification_time, 114 const base::Time& expected_modification_time,
114 storage::FileSystemContext* context) const OVERRIDE; 115 storage::FileSystemContext* context) const OVERRIDE;
115 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 116 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
116 const storage::FileSystemURL& url, 117 const storage::FileSystemURL& url,
117 int64 offset, 118 int64 offset,
118 storage::FileSystemContext* context) const OVERRIDE; 119 storage::FileSystemContext* context) const OVERRIDE;
119 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 120 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
120 121
121 // storage::ExternalFileSystemBackend overrides. 122 // storage::ExternalFileSystemBackend overrides.
122 virtual bool IsAccessAllowed( 123 virtual bool IsAccessAllowed(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Globally visible mount points. System MountPonts instance should outlive 166 // Globally visible mount points. System MountPonts instance should outlive
166 // all FileSystemBackend instances, so raw pointer is safe. 167 // all FileSystemBackend instances, so raw pointer is safe.
167 storage::ExternalMountPoints* system_mount_points_; 168 storage::ExternalMountPoints* system_mount_points_;
168 169
169 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend); 170 DISALLOW_COPY_AND_ASSIGN(FileSystemBackend);
170 }; 171 };
171 172
172 } // namespace chromeos 173 } // namespace chromeos
173 174
174 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_ 175 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698