diff options
author | kmarshall <kmarshall@chromium.org> | 2015-12-02 16:27:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-03 00:30:56 +0000 |
commit | 840a0fe2a4cab8709b5d29b89cdb968b620953ff (patch) | |
tree | e3f6703a0e5e7cbc31b90e1575ab8a4eee30ba7d /blimp/net/stream_packet_reader.h | |
parent | a18e826a670891d5804c8aced282761834741e8b (diff) | |
download | chromium_src-840a0fe2a4cab8709b5d29b89cdb968b620953ff.zip chromium_src-840a0fe2a4cab8709b5d29b89cdb968b620953ff.tar.gz chromium_src-840a0fe2a4cab8709b5d29b89cdb968b620953ff.tar.bz2 |
Make PacketReader/PacketWriter interfaces async-only.
Adapts synchronous I/O completion to use callbacks, so downstream
callers are insulated from having to manage the complexities of
mixed sync and async I/O.
Updated logic of all PacketReader/PacketWriter dependents.
R=haibinlu@chromium.org,wez@chromium.org
BUG=558643
Review URL: https://codereview.chromium.org/1452823011
Cr-Commit-Position: refs/heads/master@{#362833}
Diffstat (limited to 'blimp/net/stream_packet_reader.h')
-rw-r--r-- | blimp/net/stream_packet_reader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blimp/net/stream_packet_reader.h b/blimp/net/stream_packet_reader.h index 4468638..21a6dab 100644 --- a/blimp/net/stream_packet_reader.h +++ b/blimp/net/stream_packet_reader.h @@ -33,8 +33,8 @@ class BLIMP_NET_EXPORT StreamPacketReader : public PacketReader { ~StreamPacketReader() override; // PacketReader implementation. - int ReadPacket(const scoped_refptr<net::GrowableIOBuffer>& buf, - const net::CompletionCallback& cb) override; + void ReadPacket(const scoped_refptr<net::GrowableIOBuffer>& buf, + const net::CompletionCallback& cb) override; private: enum class ReadState { |