summaryrefslogtreecommitdiffstats
path: root/webkit/blob/file_stream_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/blob/file_stream_reader.h')
-rw-r--r--webkit/blob/file_stream_reader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/blob/file_stream_reader.h b/webkit/blob/file_stream_reader.h
index 83b8972..95e3571 100644
--- a/webkit/blob/file_stream_reader.h
+++ b/webkit/blob/file_stream_reader.h
@@ -38,6 +38,14 @@ class BLOB_EXPORT FileStreamReader {
// |callback| will not be called.
virtual int Read(net::IOBuffer* buf, int buf_len,
const net::CompletionCallback& callback) = 0;
+
+ // Returns the length of the file if it could successfully retrieve the
+ // file info *and* its last modification time equals to
+ // expected_modification_time_ (rv >= 0 cases).
+ // Otherwise, a negative error code is returned (rv < 0 cases).
+ // If the stream is deleted while it has an in-flight GetLength operation
+ // |callback| will not be called.
+ virtual int GetLength(const net::Int64CompletionCallback& callback) = 0;
};
} // namespace webkit_blob