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

Side by Side Diff: storage/browser/fileapi/plugin_private_file_system_backend.cc

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 #include "storage/browser/fileapi/plugin_private_file_system_backend.h" 5 #include "storage/browser/fileapi/plugin_private_file_system_backend.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 bool PluginPrivateFileSystemBackend::HasInplaceCopyImplementation( 191 bool PluginPrivateFileSystemBackend::HasInplaceCopyImplementation(
192 storage::FileSystemType type) const { 192 storage::FileSystemType type) const {
193 return false; 193 return false;
194 } 194 }
195 195
196 scoped_ptr<storage::FileStreamReader> 196 scoped_ptr<storage::FileStreamReader>
197 PluginPrivateFileSystemBackend::CreateFileStreamReader( 197 PluginPrivateFileSystemBackend::CreateFileStreamReader(
198 const FileSystemURL& url, 198 const FileSystemURL& url,
199 int64 offset, 199 int64 offset,
200 int64 max_bytes_to_read,
200 const base::Time& expected_modification_time, 201 const base::Time& expected_modification_time,
201 FileSystemContext* context) const { 202 FileSystemContext* context) const {
202 return scoped_ptr<storage::FileStreamReader>(); 203 return scoped_ptr<storage::FileStreamReader>();
203 } 204 }
204 205
205 scoped_ptr<FileStreamWriter> 206 scoped_ptr<FileStreamWriter>
206 PluginPrivateFileSystemBackend::CreateFileStreamWriter( 207 PluginPrivateFileSystemBackend::CreateFileStreamWriter(
207 const FileSystemURL& url, 208 const FileSystemURL& url,
208 int64 offset, 209 int64 offset,
209 FileSystemContext* context) const { 210 FileSystemContext* context) const {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 FileSystemType type) const { 303 FileSystemType type) const {
303 return NULL; 304 return NULL;
304 } 305 }
305 306
306 ObfuscatedFileUtil* PluginPrivateFileSystemBackend::obfuscated_file_util() { 307 ObfuscatedFileUtil* PluginPrivateFileSystemBackend::obfuscated_file_util() {
307 return static_cast<ObfuscatedFileUtil*>( 308 return static_cast<ObfuscatedFileUtil*>(
308 static_cast<AsyncFileUtilAdapter*>(file_util_.get())->sync_file_util()); 309 static_cast<AsyncFileUtilAdapter*>(file_util_.get())->sync_file_util());
309 } 310 }
310 311
311 } // namespace storage 312 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698