summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 08:51:38 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 08:51:38 +0000
commit5eb431e2dfe9d55eaff2acc7a3ea64f403dec669 (patch)
tree2dedc5eed71c34a111444dc341642a35ae3eb248 /net/base/file_stream.h
parentd48a64ebbf54a6d87d82c3787e12f35439e1f62b (diff)
downloadchromium_src-5eb431e2dfe9d55eaff2acc7a3ea64f403dec669.zip
chromium_src-5eb431e2dfe9d55eaff2acc7a3ea64f403dec669.tar.gz
chromium_src-5eb431e2dfe9d55eaff2acc7a3ea64f403dec669.tar.bz2
Switch FileStream to use new CompletionCallback.
BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8139019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/file_stream.h')
-rw-r--r--net/base/file_stream.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/base/file_stream.h b/net/base/file_stream.h
index 2c8cccd..f2a8f7f 100644
--- a/net/base/file_stream.h
+++ b/net/base/file_stream.h
@@ -84,8 +84,8 @@ class NET_EXPORT FileStream {
//
// This method should not be called if the stream was opened WRITE_ONLY.
//
- // You can pass NULL as the callback for synchronous I/O.
- virtual int Read(char* buf, int buf_len, OldCompletionCallback* callback);
+ // You can pass a null callback for synchronous I/O.
+ virtual int Read(char* buf, int buf_len, const CompletionCallback& callback);
// Performs the same as Read, but ensures that exactly buf_len bytes
// are copied into buf. A partial read may occur, but only as a result of
@@ -112,8 +112,9 @@ class NET_EXPORT FileStream {
//
// This method should not be called if the stream was opened READ_ONLY.
//
- // You can pass NULL as the callback for synchronous I/O.
- virtual int Write(const char* buf, int buf_len, OldCompletionCallback* callback);
+ // You can pass a null callback for synchronous I/O.
+ virtual int Write(const char* buf, int buf_len,
+ const CompletionCallback& callback);
// Truncates the file to be |bytes| length. This is only valid for writable
// files. After truncation the file stream is positioned at |bytes|. The new