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

Side by Side Diff: webkit/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: Fixed. Created 6 years, 4 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 "webkit/browser/fileapi/plugin_private_file_system_backend.h" 5 #include "webkit/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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 bool PluginPrivateFileSystemBackend::HasInplaceCopyImplementation( 186 bool PluginPrivateFileSystemBackend::HasInplaceCopyImplementation(
187 storage::FileSystemType type) const { 187 storage::FileSystemType type) const {
188 return false; 188 return false;
189 } 189 }
190 190
191 scoped_ptr<storage::FileStreamReader> 191 scoped_ptr<storage::FileStreamReader>
192 PluginPrivateFileSystemBackend::CreateFileStreamReader( 192 PluginPrivateFileSystemBackend::CreateFileStreamReader(
193 const FileSystemURL& url, 193 const FileSystemURL& url,
194 int64 offset, 194 int64 offset,
195 int64 length,
195 const base::Time& expected_modification_time, 196 const base::Time& expected_modification_time,
196 FileSystemContext* context) const { 197 FileSystemContext* context) const {
197 return scoped_ptr<storage::FileStreamReader>(); 198 return scoped_ptr<storage::FileStreamReader>();
198 } 199 }
199 200
200 scoped_ptr<FileStreamWriter> 201 scoped_ptr<FileStreamWriter>
201 PluginPrivateFileSystemBackend::CreateFileStreamWriter( 202 PluginPrivateFileSystemBackend::CreateFileStreamWriter(
202 const FileSystemURL& url, 203 const FileSystemURL& url,
203 int64 offset, 204 int64 offset,
204 FileSystemContext* context) const { 205 FileSystemContext* context) const {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 FileSystemType type) const { 298 FileSystemType type) const {
298 return NULL; 299 return NULL;
299 } 300 }
300 301
301 ObfuscatedFileUtil* PluginPrivateFileSystemBackend::obfuscated_file_util() { 302 ObfuscatedFileUtil* PluginPrivateFileSystemBackend::obfuscated_file_util() {
302 return static_cast<ObfuscatedFileUtil*>( 303 return static_cast<ObfuscatedFileUtil*>(
303 static_cast<AsyncFileUtilAdapter*>(file_util_.get())->sync_file_util()); 304 static_cast<AsyncFileUtilAdapter*>(file_util_.get())->sync_file_util());
304 } 305 }
305 306
306 } // namespace storage 307 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698