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

Side by Side Diff: storage/browser/fileapi/isolated_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_
6 #define STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ 6 #define STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "storage/browser/fileapi/file_system_backend.h" 9 #include "storage/browser/fileapi/file_system_backend.h"
10 10
(...skipping 20 matching lines...) Expand all
31 virtual FileSystemOperation* CreateFileSystemOperation( 31 virtual FileSystemOperation* CreateFileSystemOperation(
32 const FileSystemURL& url, 32 const FileSystemURL& url,
33 FileSystemContext* context, 33 FileSystemContext* context,
34 base::File::Error* error_code) const OVERRIDE; 34 base::File::Error* error_code) const OVERRIDE;
35 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; 35 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE;
36 virtual bool HasInplaceCopyImplementation( 36 virtual bool HasInplaceCopyImplementation(
37 storage::FileSystemType type) const OVERRIDE; 37 storage::FileSystemType type) const OVERRIDE;
38 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 38 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
39 const FileSystemURL& url, 39 const FileSystemURL& url,
40 int64 offset, 40 int64 offset,
41 int64 max_bytes_to_read,
41 const base::Time& expected_modification_time, 42 const base::Time& expected_modification_time,
42 FileSystemContext* context) const OVERRIDE; 43 FileSystemContext* context) const OVERRIDE;
43 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( 44 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
44 const FileSystemURL& url, 45 const FileSystemURL& url,
45 int64 offset, 46 int64 offset,
46 FileSystemContext* context) const OVERRIDE; 47 FileSystemContext* context) const OVERRIDE;
47 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 48 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
48 49
49 private: 50 private:
50 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_; 51 scoped_ptr<AsyncFileUtilAdapter> isolated_file_util_;
51 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_; 52 scoped_ptr<AsyncFileUtilAdapter> dragged_file_util_;
52 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_; 53 scoped_ptr<AsyncFileUtilAdapter> transient_file_util_;
53 }; 54 };
54 55
55 } // namespace storage 56 } // namespace storage
56 57
57 #endif // STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_ 58 #endif // STORAGE_BROWSER_FILEAPI_ISOLATED_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698