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

Side by Side Diff: chrome/browser/sync_file_system/local/sync_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: 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_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_
7 7
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/sync_file_system/sync_callbacks.h" 9 #include "chrome/browser/sync_file_system/sync_callbacks.h"
10 #include "chrome/browser/sync_file_system/sync_status_code.h" 10 #include "chrome/browser/sync_file_system/sync_status_code.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const storage::FileSystemURL& url, 43 const storage::FileSystemURL& url,
44 storage::FileSystemContext* context, 44 storage::FileSystemContext* context,
45 base::File::Error* error_code) const OVERRIDE; 45 base::File::Error* error_code) const OVERRIDE;
46 virtual bool SupportsStreaming( 46 virtual bool SupportsStreaming(
47 const storage::FileSystemURL& url) const OVERRIDE; 47 const storage::FileSystemURL& url) const OVERRIDE;
48 virtual bool HasInplaceCopyImplementation( 48 virtual bool HasInplaceCopyImplementation(
49 storage::FileSystemType type) const OVERRIDE; 49 storage::FileSystemType type) const OVERRIDE;
50 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 50 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
51 const storage::FileSystemURL& url, 51 const storage::FileSystemURL& url,
52 int64 offset, 52 int64 offset,
53 int64 max_bytes_to_read,
53 const base::Time& expected_modification_time, 54 const base::Time& expected_modification_time,
54 storage::FileSystemContext* context) const OVERRIDE; 55 storage::FileSystemContext* context) const OVERRIDE;
55 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 56 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
56 const storage::FileSystemURL& url, 57 const storage::FileSystemURL& url,
57 int64 offset, 58 int64 offset,
58 storage::FileSystemContext* context) const OVERRIDE; 59 storage::FileSystemContext* context) const OVERRIDE;
59 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 60 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
60 61
61 static SyncFileSystemBackend* GetBackend( 62 static SyncFileSystemBackend* GetBackend(
62 const storage::FileSystemContext* context); 63 const storage::FileSystemContext* context);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 storage::OpenFileSystemMode mode, 110 storage::OpenFileSystemMode mode,
110 const OpenFileSystemCallback& callback, 111 const OpenFileSystemCallback& callback,
111 SyncStatusCode status); 112 SyncStatusCode status);
112 113
113 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemBackend); 114 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemBackend);
114 }; 115 };
115 116
116 } // namespace sync_file_system 117 } // namespace sync_file_system
117 118
118 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_ 119 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698