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 WEBKIT_BLOB_FILE_STREAM_READER_H_ | 5 #ifndef STORAGE_BLOB_FILE_STREAM_READER_H_ |
6 #define WEBKIT_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" |
11 #include "net/base/completion_callback.h" | 11 #include "net/base/completion_callback.h" |
12 #include "webkit/browser/storage_browser_export.h" | 12 #include "storage/browser/storage_browser_export.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class FilePath; | 15 class FilePath; |
16 class TaskRunner; | 16 class TaskRunner; |
17 class Time; | 17 class Time; |
18 } | 18 } |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 class IOBuffer; | 21 class IOBuffer; |
22 } | 22 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // If the stream is deleted while it has an in-flight GetLength operation | 89 // If the stream is deleted while it has an in-flight GetLength operation |
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 // WEBKIT_BLOB_FILE_STREAM_READER_H_ | 99 #endif // STORAGE_BLOB_FILE_STREAM_READER_H_ |
OLD | NEW |