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

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: Fixed. 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 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 12 matching lines...) Expand all
23 explicit MTPFileSystemBackendDelegate( 23 explicit MTPFileSystemBackendDelegate(
24 const base::FilePath& storage_partition_path); 24 const base::FilePath& storage_partition_path);
25 virtual ~MTPFileSystemBackendDelegate(); 25 virtual ~MTPFileSystemBackendDelegate();
26 26
27 // FileSystemBackendDelegate overrides. 27 // FileSystemBackendDelegate overrides.
28 virtual storage::AsyncFileUtil* GetAsyncFileUtil( 28 virtual storage::AsyncFileUtil* GetAsyncFileUtil(
29 storage::FileSystemType type) OVERRIDE; 29 storage::FileSystemType type) OVERRIDE;
30 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 30 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
31 const storage::FileSystemURL& url, 31 const storage::FileSystemURL& url,
32 int64 offset, 32 int64 offset,
33 int64 length,
33 const base::Time& expected_modification_time, 34 const base::Time& expected_modification_time,
34 storage::FileSystemContext* context) OVERRIDE; 35 storage::FileSystemContext* context) OVERRIDE;
35 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 36 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
36 const storage::FileSystemURL& url, 37 const storage::FileSystemURL& url,
37 int64 offset, 38 int64 offset,
38 storage::FileSystemContext* context) OVERRIDE; 39 storage::FileSystemContext* context) OVERRIDE;
39 40
40 private: 41 private:
41 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_; 42 scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate); 44 DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate);
44 }; 45 };
45 46
46 } // namespace chromeos 47 } // namespace chromeos
47 48
48 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_FILE_SYSTEM_BACKEND_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698