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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.h

Issue 318563002: [fsp] Introduce BufferingFileStreamReader to read files in bigger chunks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 5 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_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READER_ H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
11 #include "webkit/browser/blob/file_stream_reader.h" 12 #include "webkit/browser/blob/file_stream_reader.h"
12 #include "webkit/browser/fileapi/file_system_url.h" 13 #include "webkit/browser/fileapi/file_system_url.h"
13 14
14 namespace fileapi {
15 class AsyncFileUtil;
16 } // namespace fileapi
17
18 namespace chromeos { 15 namespace chromeos {
19 namespace file_system_provider { 16 namespace file_system_provider {
20 17
21 struct EntryMetadata; 18 struct EntryMetadata;
22 class ProvidedFileSystemInterface; 19 class ProvidedFileSystemInterface;
23 20
24 // Implements a streamed file reader. It is lazily initialized by the first call 21 // Implements a streamed file reader. It is lazily initialized by the first call
25 // to Read(). 22 // to Read().
26 class FileStreamReader : public webkit_blob::FileStreamReader { 23 class FileStreamReader : public webkit_blob::FileStreamReader {
27 public: 24 public:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int file_handle_; 106 int file_handle_;
110 107
111 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_; 108 base::WeakPtrFactory<FileStreamReader> weak_ptr_factory_;
112 DISALLOW_COPY_AND_ASSIGN(FileStreamReader); 109 DISALLOW_COPY_AND_ASSIGN(FileStreamReader);
113 }; 110 };
114 111
115 } // namespace file_system_provider 112 } // namespace file_system_provider
116 } // namespace chromeos 113 } // namespace chromeos
117 114
118 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ ER_H_ 115 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_READ ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698