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

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: 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 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/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 24 matching lines...) Expand all
35 virtual ~FileSystemBackendDelegate() {} 35 virtual ~FileSystemBackendDelegate() {}
36 36
37 // Called from FileSystemBackend::GetAsyncFileUtil(). 37 // Called from FileSystemBackend::GetAsyncFileUtil().
38 virtual storage::AsyncFileUtil* GetAsyncFileUtil( 38 virtual storage::AsyncFileUtil* GetAsyncFileUtil(
39 storage::FileSystemType type) = 0; 39 storage::FileSystemType type) = 0;
40 40
41 // Called from FileSystemBackend::CreateFileStreamReader(). 41 // Called from FileSystemBackend::CreateFileStreamReader().
42 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 42 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
43 const storage::FileSystemURL& url, 43 const storage::FileSystemURL& url,
44 int64 offset, 44 int64 offset,
45 int64 max_bytes_to_read,
45 const base::Time& expected_modification_time, 46 const base::Time& expected_modification_time,
46 storage::FileSystemContext* context) = 0; 47 storage::FileSystemContext* context) = 0;
47 48
48 // Called from FileSystemBackend::CreateFileStreamWriter(). 49 // Called from FileSystemBackend::CreateFileStreamWriter().
49 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 50 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
50 const storage::FileSystemURL& url, 51 const storage::FileSystemURL& url,
51 int64 offset, 52 int64 offset,
52 storage::FileSystemContext* context) = 0; 53 storage::FileSystemContext* context) = 0;
53 54
54 // Called from the FileSystemWatcherService class. The returned pointer must 55 // Called from the FileSystemWatcherService class. The returned pointer must
55 // stay valid until shutdown. 56 // stay valid until shutdown.
56 virtual storage::WatcherManager* GetWatcherManager( 57 virtual storage::WatcherManager* GetWatcherManager(
57 const storage::FileSystemURL& url) = 0; 58 const storage::FileSystemURL& url) = 0;
58 59
59 // Called from FileSystemBackend::GetRedirectURLForContents. Please ensure 60 // Called from FileSystemBackend::GetRedirectURLForContents. Please ensure
60 // that the returned URL is secure to be opened in a browser tab, or referred 61 // that the returned URL is secure to be opened in a browser tab, or referred
61 // from <img>, <video>, XMLHttpRequest, etc... 62 // from <img>, <video>, XMLHttpRequest, etc...
62 virtual void GetRedirectURLForContents( 63 virtual void GetRedirectURLForContents(
63 const storage::FileSystemURL& url, 64 const storage::FileSystemURL& url,
64 const storage::URLCallback& callback) = 0; 65 const storage::URLCallback& callback) = 0;
65 }; 66 };
66 67
67 } // namespace chromeos 68 } // namespace chromeos
68 69
69 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_ 70 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698