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

Side by Side Diff: chrome/browser/local_discovery/storage/privet_filesystem_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, 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_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 virtual bool SupportsStreaming( 47 virtual bool SupportsStreaming(
48 const storage::FileSystemURL& url) const OVERRIDE; 48 const storage::FileSystemURL& url) const OVERRIDE;
49 49
50 virtual bool HasInplaceCopyImplementation( 50 virtual bool HasInplaceCopyImplementation(
51 storage::FileSystemType type) const OVERRIDE; 51 storage::FileSystemType type) const OVERRIDE;
52 52
53 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader( 53 virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
54 const storage::FileSystemURL& url, 54 const storage::FileSystemURL& url,
55 int64 offset, 55 int64 offset,
56 int64 length,
56 const base::Time& expected_modification_time, 57 const base::Time& expected_modification_time,
57 storage::FileSystemContext* context) const OVERRIDE; 58 storage::FileSystemContext* context) const OVERRIDE;
58 59
59 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter( 60 virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
60 const storage::FileSystemURL& url, 61 const storage::FileSystemURL& url,
61 int64 offset, 62 int64 offset,
62 storage::FileSystemContext* context) const OVERRIDE; 63 storage::FileSystemContext* context) const OVERRIDE;
63 64
64 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 65 virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
65 66
66 private: 67 private:
67 // User mount points. 68 // User mount points.
68 scoped_refptr<storage::ExternalMountPoints> mount_points_; 69 scoped_refptr<storage::ExternalMountPoints> mount_points_;
69 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_; 70 scoped_ptr<PrivetFileSystemAsyncUtil> async_util_;
70 }; 71 };
71 72
72 } // namespace local_discovery 73 } // namespace local_discovery
73 74
74 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_ 75 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698