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

Side by Side Diff: remoting/protocol/channel_socket_adapter.h

Issue 1412313006: Remove remoting::protocol::Transport interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@transport_session.h
Patch Set: Created 5 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 | remoting/protocol/ice_transport_channel.h » ('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 REMOTING_PROTOCOL_CHANNEL_SOCKET_ADAPTER_H_ 5 #ifndef REMOTING_PROTOCOL_CHANNEL_SOCKET_ADAPTER_H_
6 #define REMOTING_PROTOCOL_CHANNEL_SOCKET_ADAPTER_H_ 6 #define REMOTING_PROTOCOL_CHANNEL_SOCKET_ADAPTER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "remoting/protocol/p2p_datagram_socket.h" 11 #include "remoting/protocol/p2p_datagram_socket.h"
12 #include "third_party/webrtc/base/asyncpacketsocket.h" 12 #include "third_party/webrtc/base/asyncpacketsocket.h"
13 #include "third_party/webrtc/base/sigslot.h" 13 #include "third_party/webrtc/base/sigslot.h"
14 #include "third_party/webrtc/base/socketaddress.h" 14 #include "third_party/webrtc/base/socketaddress.h"
15 15
16 namespace cricket { 16 namespace cricket {
17 class TransportChannel; 17 class TransportChannel;
18 } // namespace cricket 18 } // namespace cricket
19 19
20 namespace remoting { 20 namespace remoting {
21 namespace protocol { 21 namespace protocol {
22 22
23 // TransportChannelSocketAdapter implements P2PDatagramSocket interface on 23 // TransportChannelSocketAdapter implements P2PDatagramSocket interface on
24 // top of libjingle's TransportChannel. It is used by LibjingleTransportFactory 24 // top of libjingle's TransportChannel. It is used by IceTransportSession
25 // to provide P2PDatagramSocket interface for channels. 25 // to provide P2PDatagramSocket interface for channels.
26 class TransportChannelSocketAdapter : public P2PDatagramSocket, 26 class TransportChannelSocketAdapter : public P2PDatagramSocket,
27 public sigslot::has_slots<> { 27 public sigslot::has_slots<> {
28 public: 28 public:
29 // Doesn't take ownership of the |channel|. The |channel| must outlive 29 // Doesn't take ownership of the |channel|. The |channel| must outlive
30 // this adapter. 30 // this adapter.
31 explicit TransportChannelSocketAdapter(cricket::TransportChannel* channel); 31 explicit TransportChannelSocketAdapter(cricket::TransportChannel* channel);
32 ~TransportChannelSocketAdapter() override; 32 ~TransportChannelSocketAdapter() override;
33 33
34 // Sets callback that should be called when the adapter is being 34 // Sets callback that should be called when the adapter is being
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 int closed_error_code_; 73 int closed_error_code_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(TransportChannelSocketAdapter); 75 DISALLOW_COPY_AND_ASSIGN(TransportChannelSocketAdapter);
76 }; 76 };
77 77
78 } // namespace protocol 78 } // namespace protocol
79 } // namespace remoting 79 } // namespace remoting
80 80
81 #endif // REMOTING_PROTOCOL_CHANNEL_SOCKET_ADAPTER_H_ 81 #endif // REMOTING_PROTOCOL_CHANNEL_SOCKET_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/ice_transport_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698