OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_FILEAPI_ASYNC_FILE_STREAM_H_ | 5 #ifndef WEBKIT_BROWSER_CHROMEOS_FILEAPI_ASYNC_FILE_STREAM_H_ |
6 #define WEBKIT_CHROMEOS_FILEAPI_ASYNC_FILE_STREAM_H_ | 6 #define WEBKIT_BROWSER_CHROMEOS_FILEAPI_ASYNC_FILE_STREAM_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 | 10 |
11 namespace fileapi { | 11 namespace fileapi { |
12 | 12 |
13 using base::PlatformFileError; | 13 using base::PlatformFileError; |
14 | 14 |
15 // This class is used for implementing Open() in FileUtilAsync. This class | 15 // This class is used for implementing Open() in FileUtilAsync. This class |
16 // is similar to net::FileStream, but supporting only the asynchronous | 16 // is similar to net::FileStream, but supporting only the asynchronous |
(...skipping 29 matching lines...) Expand all Loading... |
46 const ReadWriteCallback& callback) = 0; | 46 const ReadWriteCallback& callback) = 0; |
47 | 47 |
48 // Moves the stream position. On success, PLATFORM_FILE_OK is passed to | 48 // Moves the stream position. On success, PLATFORM_FILE_OK is passed to |
49 // |callback|. On error, an error code is passed instead. | 49 // |callback|. On error, an error code is passed instead. |
50 virtual void Seek(int64 offset, | 50 virtual void Seek(int64 offset, |
51 const SeekCallback& callback) = 0; | 51 const SeekCallback& callback) = 0; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace fileapi | 54 } // namespace fileapi |
55 | 55 |
56 #endif // WEBKIT_CHROMEOS_FILEAPI_ASYNC_FILE_STREAM_H_ | 56 #endif // WEBKIT_BROWSER_CHROMEOS_FILEAPI_ASYNC_FILE_STREAM_H_ |
OLD | NEW |