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

Side by Side Diff: blimp/net/tcp_engine_transport.h

Issue 2511773003: Fix potential teardown race conditions with TCPEngineTransport's PostTasks. (Closed)
Patch Set: wez feedback Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_NET_TCP_ENGINE_TRANSPORT_H_ 5 #ifndef BLIMP_NET_TCP_ENGINE_TRANSPORT_H_
6 #define BLIMP_NET_TCP_ENGINE_TRANSPORT_H_ 6 #define BLIMP_NET_TCP_ENGINE_TRANSPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 std::unique_ptr<MessagePort> TakeMessagePort(); 42 std::unique_ptr<MessagePort> TakeMessagePort();
43 43
44 private: 44 private:
45 void OnTCPConnectAccepted(int result); 45 void OnTCPConnectAccepted(int result);
46 46
47 const net::IPEndPoint address_; 47 const net::IPEndPoint address_;
48 net::NetLog* net_log_; 48 net::NetLog* net_log_;
49 std::unique_ptr<net::ServerSocket> server_socket_; 49 std::unique_ptr<net::ServerSocket> server_socket_;
50 std::unique_ptr<net::StreamSocket> accepted_socket_; 50 std::unique_ptr<net::StreamSocket> accepted_socket_;
51 net::CompletionCallback connect_callback_; 51 net::CompletionCallback connect_callback_;
52 base::WeakPtrFactory<TCPEngineTransport> weak_factory_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(TCPEngineTransport); 54 DISALLOW_COPY_AND_ASSIGN(TCPEngineTransport);
54 }; 55 };
55 56
56 } // namespace blimp 57 } // namespace blimp
57 58
58 #endif // BLIMP_NET_TCP_ENGINE_TRANSPORT_H_ 59 #endif // BLIMP_NET_TCP_ENGINE_TRANSPORT_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698