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

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: Fixed. 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 30 matching lines...) Expand all
41 const storage::FileSystemURL& url, 41 const storage::FileSystemURL& url,
42 storage::FileSystemContext* context, 42 storage::FileSystemContext* context,
43 base::File::Error* error_code) const OVERRIDE; 43 base::File::Error* error_code) const OVERRIDE;
44 virtual bool SupportsStreaming( 44 virtual bool SupportsStreaming(
45 const storage::FileSystemURL& url) const OVERRIDE; 45 const storage::FileSystemURL& url) const OVERRIDE;
46 virtual bool HasInplaceCopyImplementation( 46 virtual bool HasInplaceCopyImplementation(
47 storage::FileSystemType type) const OVERRIDE; 47 storage::FileSystemType type) const OVERRIDE;
48 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 48 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
49 const storage::FileSystemURL& url, 49 const storage::FileSystemURL& url,
50 int64 offset, 50 int64 offset,
51 int64 length,
51 const base::Time& expected_modification_time, 52 const base::Time& expected_modification_time,
52 storage::FileSystemContext* context) const OVERRIDE; 53 storage::FileSystemContext* context) const OVERRIDE;
53 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 54 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
54 const storage::FileSystemURL& url, 55 const storage::FileSystemURL& url,
55 int64 offset, 56 int64 offset,
56 storage::FileSystemContext* context) const OVERRIDE; 57 storage::FileSystemContext* context) const OVERRIDE;
57 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 58 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
58 59
59 static SyncFileSystemBackend* GetBackend( 60 static SyncFileSystemBackend* GetBackend(
60 const storage::FileSystemContext* context); 61 const storage::FileSystemContext* context);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 storage::OpenFileSystemMode mode, 108 storage::OpenFileSystemMode mode,
108 const OpenFileSystemCallback& callback, 109 const OpenFileSystemCallback& callback,
109 SyncStatusCode status); 110 SyncStatusCode status);
110 111
111 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemBackend); 112 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemBackend);
112 }; 113 };
113 114
114 } // namespace sync_file_system 115 } // namespace sync_file_system
115 116
116 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_ 117 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNC_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698