Home | History | Annotate | Download | only in protocol

Lines Matching refs:Transport

5 // This file defines the interface for peer-to-peer transport. There
6 // are two types of transport: StreamTransport and DatagramTransport.
10 // datagram connection. The Transport interface itself doesn't provide
13 // channel. After a new transport is Initialize()'ed the Connect()
17 // specified in the Connect() call. The Transport object must exist
20 // Transport object.
66 class Transport : public base::NonThreadSafe {
73 // Called when the transport generates a new candidate that needs
76 virtual void OnTransportCandidate(Transport* transport,
79 // Called when transport route changes. Can be called even before
80 // the transport is connected.
81 virtual void OnTransportRouteChange(Transport* transport,
84 // Called when the transport inactivity state changes. When
90 virtual void OnTransportReady(Transport* transport, bool ready) = 0;
92 // Called when when the transport has failed to connect or reconnect.
93 virtual void OnTransportFailed(Transport* transport) = 0;
95 // Called when the transport is about to be deleted.
96 virtual void OnTransportDeleted(Transport* transport) = 0;
99 Transport() {}
100 virtual ~Transport() {}
102 // Intialize the transport with the specified parameters.
105 Transport::EventHandler* event_handler,
120 DISALLOW_COPY_AND_ASSIGN(Transport);
123 class StreamTransport : public Transport {
136 class DatagramTransport : public Transport {