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

Unified Diff: blimp/net/tcp_engine_transport.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/tcp_connection_unittest.cc ('k') | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/tcp_engine_transport.h
diff --git a/blimp/net/tcp_engine_transport.h b/blimp/net/tcp_engine_transport.h
deleted file mode 100644
index 4ab48304538e27010067e415df3bab25def29ef0..0000000000000000000000000000000000000000
--- a/blimp/net/tcp_engine_transport.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2015 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_TCP_ENGINE_TRANSPORT_H_
-#define BLIMP_NET_TCP_ENGINE_TRANSPORT_H_
-
-#include <memory>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "blimp/net/blimp_engine_transport.h"
-#include "blimp/net/blimp_net_export.h"
-#include "net/base/ip_endpoint.h"
-#include "net/base/net_errors.h"
-
-namespace net {
-class NetLog;
-class ServerSocket;
-class StreamSocket;
-} // namespace net
-
-namespace blimp {
-
-class MessagePort;
-
-// |BlimpTransport| which listens for a TCP connection at |address|.
-class BLIMP_NET_EXPORT TCPEngineTransport : public BlimpEngineTransport {
- public:
- // Caller retains the ownership of |net_log|.
- TCPEngineTransport(const net::IPEndPoint& address,
- net::NetLog* net_log);
- ~TCPEngineTransport() override;
-
- // BlimpTransport implementation.
- void Connect(const net::CompletionCallback& callback) override;
- std::unique_ptr<BlimpConnection> MakeConnection() override;
- const char* GetName() const override;
- void GetLocalAddress(net::IPEndPoint* address) const override;
-
- // Internal use only except tests.
- std::unique_ptr<MessagePort> TakeMessagePort();
-
- private:
- void OnTCPConnectAccepted(int result);
-
- const net::IPEndPoint address_;
- net::NetLog* net_log_;
- std::unique_ptr<net::ServerSocket> server_socket_;
- std::unique_ptr<net::StreamSocket> accepted_socket_;
- net::CompletionCallback connect_callback_;
- base::WeakPtrFactory<TCPEngineTransport> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(TCPEngineTransport);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_TCP_ENGINE_TRANSPORT_H_
« no previous file with comments | « blimp/net/tcp_connection_unittest.cc ('k') | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698