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

Side by Side Diff: storage/browser/fileapi/plugin_private_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 STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
6 #define STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 6 #define STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual FileSystemOperation* CreateFileSystemOperation( 73 virtual FileSystemOperation* CreateFileSystemOperation(
74 const FileSystemURL& url, 74 const FileSystemURL& url,
75 FileSystemContext* context, 75 FileSystemContext* context,
76 base::File::Error* error_code) const OVERRIDE; 76 base::File::Error* error_code) const OVERRIDE;
77 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; 77 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE;
78 virtual bool HasInplaceCopyImplementation( 78 virtual bool HasInplaceCopyImplementation(
79 storage::FileSystemType type) const OVERRIDE; 79 storage::FileSystemType type) const OVERRIDE;
80 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 80 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
81 const FileSystemURL& url, 81 const FileSystemURL& url,
82 int64 offset, 82 int64 offset,
83 int64 max_bytes_to_read,
83 const base::Time& expected_modification_time, 84 const base::Time& expected_modification_time,
84 FileSystemContext* context) const OVERRIDE; 85 FileSystemContext* context) const OVERRIDE;
85 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( 86 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
86 const FileSystemURL& url, 87 const FileSystemURL& url,
87 int64 offset, 88 int64 offset,
88 FileSystemContext* context) const OVERRIDE; 89 FileSystemContext* context) const OVERRIDE;
89 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 90 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
90 91
91 // FileSystemQuotaUtil overrides. 92 // FileSystemQuotaUtil overrides.
92 virtual base::File::Error DeleteOriginDataOnFileTaskRunner( 93 virtual base::File::Error DeleteOriginDataOnFileTaskRunner(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 scoped_ptr<AsyncFileUtil> file_util_; 141 scoped_ptr<AsyncFileUtil> file_util_;
141 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. 142 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_.
142 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; 143 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_;
143 144
144 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); 145 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend);
145 }; 146 };
146 147
147 } // namespace storage 148 } // namespace storage
148 149
149 #endif // STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 150 #endif // STORAGE_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698