OLD | NEW |
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_BUFFERING_FILE_STRE
AM_READER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BUFFERING_FILE_STRE
AM_READER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BUFFERING_FILE_STRE
AM_READER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BUFFERING_FILE_STRE
AM_READER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "storage/browser/blob/file_stream_reader.h" | 12 #include "storage/browser/fileapi/file_stream_reader.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 class IOBuffer; | 15 class IOBuffer; |
16 } // namespace net | 16 } // namespace net |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 namespace file_system_provider { | 19 namespace file_system_provider { |
20 | 20 |
21 // Wraps the file stream reader implementation with a prefetching buffer. | 21 // Wraps the file stream reader implementation with a prefetching buffer. |
22 // Reads data from the internal file stream reader in chunks of size at least | 22 // Reads data from the internal file stream reader in chunks of size at least |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int preloaded_bytes_; | 68 int preloaded_bytes_; |
69 | 69 |
70 base::WeakPtrFactory<BufferingFileStreamReader> weak_ptr_factory_; | 70 base::WeakPtrFactory<BufferingFileStreamReader> weak_ptr_factory_; |
71 DISALLOW_COPY_AND_ASSIGN(BufferingFileStreamReader); | 71 DISALLOW_COPY_AND_ASSIGN(BufferingFileStreamReader); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace file_system_provider | 74 } // namespace file_system_provider |
75 } // namespace chromeos | 75 } // namespace chromeos |
76 | 76 |
77 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BUFFERING_FILE_S
TREAM_READER_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_BUFFERING_FILE_S
TREAM_READER_H_ |
OLD | NEW |