Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3248)

Unified Diff: blimp/net/message_port.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/net/input_message_unittest.cc ('k') | blimp/net/message_port.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/message_port.h
diff --git a/blimp/net/message_port.h b/blimp/net/message_port.h
deleted file mode 100644
index b3e1070676d25c2e9d7b69dbe0323a3fab4dfe77..0000000000000000000000000000000000000000
--- a/blimp/net/message_port.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_NET_MESSAGE_PORT_H_
-#define BLIMP_NET_MESSAGE_PORT_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/supports_user_data.h"
-#include "blimp/net/blimp_net_export.h"
-
-namespace net {
-class StreamSocket;
-}
-
-namespace blimp {
-
-class PacketReader;
-class PacketWriter;
-
-// A duplexed pair of a framed reader and writer.
-class BLIMP_NET_EXPORT MessagePort {
- public:
- MessagePort(std::unique_ptr<PacketReader> reader,
- std::unique_ptr<PacketWriter> writer);
- virtual ~MessagePort();
-
- static std::unique_ptr<MessagePort> CreateForStreamSocketWithCompression(
- std::unique_ptr<net::StreamSocket> socket);
-
- PacketReader* reader() const { return reader_.get(); }
- PacketWriter* writer() const { return writer_.get(); }
-
- private:
- std::unique_ptr<PacketReader> reader_;
- std::unique_ptr<PacketWriter> writer_;
-
- DISALLOW_COPY_AND_ASSIGN(MessagePort);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_MESSAGE_PORT_H_
« no previous file with comments | « blimp/net/input_message_unittest.cc ('k') | blimp/net/message_port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698