| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 STORAGE_BROWSER_BLOB_BLOB_READER_H_ | 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_READER_H_ |
| 6 #define STORAGE_BROWSER_BLOB_BLOB_READER_H_ | 6 #define STORAGE_BROWSER_BLOB_BLOB_READER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class DrainableIOBuffer; | 32 class DrainableIOBuffer; |
| 33 class IOBuffer; | 33 class IOBuffer; |
| 34 class IOBufferWithSize; | 34 class IOBufferWithSize; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace storage { | 37 namespace storage { |
| 38 class BlobDataItem; | 38 class BlobDataItem; |
| 39 class BlobDataHandle; | 39 class BlobDataHandle; |
| 40 class BlobDataSnapshot; | 40 class BlobDataSnapshot; |
| 41 class FileStreamReader; | 41 class FileStreamReader; |
| 42 class FileSystemContext; | |
| 43 | 42 |
| 44 // The blob reader is used to read a blob. This can only be used in the browser | 43 // The blob reader is used to read a blob. This can only be used in the browser |
| 45 // process, and we need to be on the IO thread. | 44 // process, and we need to be on the IO thread. |
| 46 // * There can only be one read happening at a time per reader. | 45 // * There can only be one read happening at a time per reader. |
| 47 // * If a status of Status::NET_ERROR is returned, that means there was an | 46 // * If a status of Status::NET_ERROR is returned, that means there was an |
| 48 // error and the net_error() variable contains the error code. | 47 // error and the net_error() variable contains the error code. |
| 49 // Use a BlobDataHandle to create an instance. | 48 // Use a BlobDataHandle to create an instance. |
| 50 class STORAGE_EXPORT BlobReader { | 49 class STORAGE_EXPORT BlobReader { |
| 51 public: | 50 public: |
| 52 class STORAGE_EXPORT FileStreamReaderProvider { | 51 class STORAGE_EXPORT FileStreamReaderProvider { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 220 |
| 222 net::CompletionCallback size_callback_; | 221 net::CompletionCallback size_callback_; |
| 223 net::CompletionCallback read_callback_; | 222 net::CompletionCallback read_callback_; |
| 224 | 223 |
| 225 base::WeakPtrFactory<BlobReader> weak_factory_; | 224 base::WeakPtrFactory<BlobReader> weak_factory_; |
| 226 DISALLOW_COPY_AND_ASSIGN(BlobReader); | 225 DISALLOW_COPY_AND_ASSIGN(BlobReader); |
| 227 }; | 226 }; |
| 228 | 227 |
| 229 } // namespace storage | 228 } // namespace storage |
| 230 #endif // STORAGE_BROWSER_BLOB_BLOB_READER_H_ | 229 #endif // STORAGE_BROWSER_BLOB_BLOB_READER_H_ |
| OLD | NEW |