OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BLOB_FILE_STREAM_READER_H_ | 5 #ifndef STORAGE_BLOB_FILE_STREAM_READER_H_ |
6 #define STORAGE_BLOB_FILE_STREAM_READER_H_ | 6 #define STORAGE_BLOB_FILE_STREAM_READER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // |callback| will not be called. | 90 // |callback| will not be called. |
91 // Note that the return type is int64 to return a larger file's size (a file | 91 // Note that the return type is int64 to return a larger file's size (a file |
92 // larger than 2G) but an error code should fit in the int range (may be | 92 // larger than 2G) but an error code should fit in the int range (may be |
93 // smaller than int64 range). | 93 // smaller than int64 range). |
94 virtual int64 GetLength(const net::Int64CompletionCallback& callback) = 0; | 94 virtual int64 GetLength(const net::Int64CompletionCallback& callback) = 0; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace storage | 97 } // namespace storage |
98 | 98 |
99 #endif // STORAGE_BLOB_FILE_STREAM_READER_H_ | 99 #endif // STORAGE_BLOB_FILE_STREAM_READER_H_ |
OLD | NEW |