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

Side by Side Diff: chrome/browser/chromeos/fileapi/mtp_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h" 9 #include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
10 10
(...skipping 21 matching lines...) Expand all
32 explicit MTPFileSystemBackendDelegate( 32 explicit MTPFileSystemBackendDelegate(
33 const base::FilePath& storage_partition_path); 33 const base::FilePath& storage_partition_path);
34 virtual ~MTPFileSystemBackendDelegate(); 34 virtual ~MTPFileSystemBackendDelegate();
35 35
36 // FileSystemBackendDelegate overrides. 36 // FileSystemBackendDelegate overrides.
37 virtual storage::AsyncFileUtil* GetAsyncFileUtil( 37 virtual storage::AsyncFileUtil* GetAsyncFileUtil(
38 storage::FileSystemType type) OVERRIDE; 38 storage::FileSystemType type) OVERRIDE;
39 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 39 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
40 const storage::FileSystemURL& url, 40 const storage::FileSystemURL& url,
41 int64 offset, 41 int64 offset,
42 int64 max_bytes_to_read,
42 const base::Time& expected_modification_time, 43 const base::Time& expected_modification_time,
43 storage::FileSystemContext* context) OVERRIDE; 44 storage::FileSystemContext* context) OVERRIDE;
44 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 45 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
45 const storage::FileSystemURL& url, 46 const storage::FileSystemURL& url,
46 int64 offset, 47 int64 offset,
47 storage::FileSystemContext* context) OVERRIDE; 48 storage::FileSystemContext* context) OVERRIDE;
48 virtual storage::WatcherManager* GetWatcherManager( 49 virtual storage::WatcherManager* GetWatcherManager(
49 const storage::FileSystemURL& url) OVERRIDE; 50 const storage::FileSystemURL& url) OVERRIDE;
50 virtual void GetRedirectURLForContents( 51 virtual void GetRedirectURLForContents(
51 const storage::FileSystemURL& url, 52 const storage::FileSystemURL& url,
52 const storage::URLCallback& callback) OVERRIDE; 53 const storage::URLCallback& callback) OVERRIDE;
53 54
54 private: 55 private:
55 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; 56 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate); 58 DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate);
58 }; 59 };
59 60
60 } // namespace chromeos 61 } // namespace chromeos
61 62
62 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698