OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_FILE_STREAM_
READER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_FILE_STREAM_
READER_H_ |
| 7 |
| 8 #include "storage/browser/fileapi/file_stream_reader.h" |
| 9 |
| 10 namespace arc { |
| 11 |
| 12 class ArcContentFileSystemFileStreamReader : public storage::FileStreamReader { |
| 13 public: |
| 14 ArcContentFileSystemFileStreamReader(const storage::FileSystemURL& url, |
| 15 int64_t offset, |
| 16 int64_t max_bytes_to_read); |
| 17 ~ArcContentFileSystemFileStreamReader() override; |
| 18 |
| 19 // storage::FileStreamReader override: |
| 20 int Read(net::IOBuffer* buffer, |
| 21 int buffer_length, |
| 22 const net::CompletionCallback& callback) override; |
| 23 int64_t GetLength(const net::Int64CompletionCallback& callback) override; |
| 24 |
| 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(ArcContentFileSystemFileStreamReader); |
| 27 }; |
| 28 |
| 29 } // namespace arc |
| 30 |
| 31 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_CONTENT_FILE_SYSTEM_FILE_STRE
AM_READER_H_ |
OLD | NEW |