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

Side by Side Diff: content/public/test/test_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 "content/public/test/test_file_system_backend.h" 5 #include "content/public/test/test_file_system_backend.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 bool TestFileSystemBackend::HasInplaceCopyImplementation( 229 bool TestFileSystemBackend::HasInplaceCopyImplementation(
230 storage::FileSystemType type) const { 230 storage::FileSystemType type) const {
231 return true; 231 return true;
232 } 232 }
233 233
234 scoped_ptr<storage::FileStreamReader> 234 scoped_ptr<storage::FileStreamReader>
235 TestFileSystemBackend::CreateFileStreamReader( 235 TestFileSystemBackend::CreateFileStreamReader(
236 const FileSystemURL& url, 236 const FileSystemURL& url,
237 int64 offset, 237 int64 offset,
238 int64 length,
238 const base::Time& expected_modification_time, 239 const base::Time& expected_modification_time,
239 FileSystemContext* context) const { 240 FileSystemContext* context) const {
240 return scoped_ptr<storage::FileStreamReader>( 241 return scoped_ptr<storage::FileStreamReader>(
241 storage::FileStreamReader::CreateForFileSystemFile( 242 storage::FileStreamReader::CreateForFileSystemFile(
242 context, url, offset, expected_modification_time)); 243 context, url, offset, expected_modification_time));
243 } 244 }
244 245
245 scoped_ptr<storage::FileStreamWriter> 246 scoped_ptr<storage::FileStreamWriter>
246 TestFileSystemBackend::CreateFileStreamWriter( 247 TestFileSystemBackend::CreateFileStreamWriter(
247 const FileSystemURL& url, 248 const FileSystemURL& url,
(...skipping 13 matching lines...) Expand all
261 return quota_util_->GetUpdateObservers(type); 262 return quota_util_->GetUpdateObservers(type);
262 } 263 }
263 264
264 void TestFileSystemBackend::AddFileChangeObserver( 265 void TestFileSystemBackend::AddFileChangeObserver(
265 storage::FileChangeObserver* observer) { 266 storage::FileChangeObserver* observer) {
266 quota_util_->AddFileChangeObserver( 267 quota_util_->AddFileChangeObserver(
267 storage::kFileSystemTypeTest, observer, quota_util_->task_runner()); 268 storage::kFileSystemTypeTest, observer, quota_util_->task_runner());
268 } 269 }
269 270
270 } // namespace content 271 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698