summaryrefslogtreecommitdiffstats
path: root/blimp
diff options
context:
space:
mode:
authorkmarshall <kmarshall@chromium.org>2015-11-12 14:29:37 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-12 22:30:53 +0000
commite27f959360c555ec9171bcee3553478540fef94e (patch)
treef06e3a74cba8fa13de9cd9b5ed3963d5739c2f61 /blimp
parent6c1939b5880fe9201db580865d33701bcd17be8a (diff)
downloadchromium_src-e27f959360c555ec9171bcee3553478540fef94e.zip
chromium_src-e27f959360c555ec9171bcee3553478540fef94e.tar.gz
chromium_src-e27f959360c555ec9171bcee3553478540fef94e.tar.bz2
Add interfaces for most major Blimp net components.
This CL contains interfaces and implementation stubs for network components. It will be used as a foundation for implementation work done in parallel. Other changes made to existing net code include: Rename BlimpMessageReceiver to BlimpMessageProcessor. Make BlimpMessageProcessor async-only. BUG=555012 R=wez@chromium.org,haibinlu@chromium.org Committed: https://crrev.com/3f89b699c0672552f6471e6d085c81500b40d4af Cr-Commit-Position: refs/heads/master@{#359375} Review URL: https://codereview.chromium.org/1429193002 Cr-Commit-Position: refs/heads/master@{#359411}
Diffstat (limited to 'blimp')
-rw-r--r--blimp/net/blimp_connection.h2
-rw-r--r--blimp/net/stream_socket_connection.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/blimp/net/blimp_connection.h b/blimp/net/blimp_connection.h
index c0488d0..38961e6 100644
--- a/blimp/net/blimp_connection.h
+++ b/blimp/net/blimp_connection.h
@@ -27,7 +27,7 @@ class BLIMP_NET_EXPORT BlimpConnection {
BlimpConnection(scoped_ptr<PacketReader> reader,
scoped_ptr<PacketWriter> writer);
- ~BlimpConnection();
+ virtual ~BlimpConnection();
// Lets |observer| know when the network connection is terminated.
void AddDisconnectObserver(DisconnectObserver* observer);
diff --git a/blimp/net/stream_socket_connection.h b/blimp/net/stream_socket_connection.h
index 566cb70..9739a09 100644
--- a/blimp/net/stream_socket_connection.h
+++ b/blimp/net/stream_socket_connection.h
@@ -19,7 +19,8 @@ namespace blimp {
class StreamSocketConnection : public BlimpConnection {
public:
explicit StreamSocketConnection(scoped_ptr<net::StreamSocket> socket);
- virtual ~StreamSocketConnection();
+
+ ~StreamSocketConnection() override;
private:
scoped_ptr<net::StreamSocket> socket_;