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

Side by Side Diff: chrome/browser/chromeos/fileapi/file_system_backend_delegate.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 CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "webkit/common/fileapi/file_system_types.h" 10 #include "webkit/common/fileapi/file_system_types.h"
(...skipping 22 matching lines...) Expand all
33 virtual ~FileSystemBackendDelegate() {} 33 virtual ~FileSystemBackendDelegate() {}
34 34
35 // Called from FileSystemBackend::GetAsyncFileUtil(). 35 // Called from FileSystemBackend::GetAsyncFileUtil().
36 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil( 36 virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
37 fileapi::FileSystemType type) = 0; 37 fileapi::FileSystemType type) = 0;
38 38
39 // Called from FileSystemBackend::CreateFileStreamReader(). 39 // Called from FileSystemBackend::CreateFileStreamReader().
40 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader( 40 virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
41 const fileapi::FileSystemURL& url, 41 const fileapi::FileSystemURL& url,
42 int64 offset, 42 int64 offset,
43 int64 length,
43 const base::Time& expected_modification_time, 44 const base::Time& expected_modification_time,
44 fileapi::FileSystemContext* context) = 0; 45 fileapi::FileSystemContext* context) = 0;
45 46
46 // Called from FileSystemBackend::CreateFileStreamWriter(). 47 // Called from FileSystemBackend::CreateFileStreamWriter().
47 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter( 48 virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
48 const fileapi::FileSystemURL& url, 49 const fileapi::FileSystemURL& url,
49 int64 offset, 50 int64 offset,
50 fileapi::FileSystemContext* context) = 0; 51 fileapi::FileSystemContext* context) = 0;
51 }; 52 };
52 53
53 } // namespace chromeos 54 } // namespace chromeos
54 55
55 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698