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

Side by Side Diff: webkit/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: Fixed a dcheck. 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 #ifndef WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual FileSystemOperation* CreateFileSystemOperation( 71 virtual FileSystemOperation* CreateFileSystemOperation(
72 const FileSystemURL& url, 72 const FileSystemURL& url,
73 FileSystemContext* context, 73 FileSystemContext* context,
74 base::File::Error* error_code) const OVERRIDE; 74 base::File::Error* error_code) const OVERRIDE;
75 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; 75 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE;
76 virtual bool HasInplaceCopyImplementation( 76 virtual bool HasInplaceCopyImplementation(
77 fileapi::FileSystemType type) const OVERRIDE; 77 fileapi::FileSystemType type) const OVERRIDE;
78 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 78 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
79 const FileSystemURL& url, 79 const FileSystemURL& url,
80 int64 offset, 80 int64 offset,
81 int64 length,
81 const base::Time& expected_modification_time, 82 const base::Time& expected_modification_time,
82 FileSystemContext* context) const OVERRIDE; 83 FileSystemContext* context) const OVERRIDE;
83 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter( 84 virtual scoped_ptr<FileStreamWriter> CreateFileStreamWriter(
84 const FileSystemURL& url, 85 const FileSystemURL& url,
85 int64 offset, 86 int64 offset,
86 FileSystemContext* context) const OVERRIDE; 87 FileSystemContext* context) const OVERRIDE;
87 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 88 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
88 89
89 // FileSystemQuotaUtil overrides. 90 // FileSystemQuotaUtil overrides.
90 virtual base::File::Error DeleteOriginDataOnFileTaskRunner( 91 virtual base::File::Error DeleteOriginDataOnFileTaskRunner(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 scoped_ptr<AsyncFileUtil> file_util_; 139 scoped_ptr<AsyncFileUtil> file_util_;
139 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. 140 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_.
140 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; 141 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); 143 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend);
143 }; 144 };
144 145
145 } // namespace fileapi 146 } // namespace fileapi
146 147
147 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 148 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698