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

Side by Side Diff: webrtc/p2p/base/dtlstransportinternal.h

Issue 2679103006: Rename "PacketTransportInterface" to "PacketTransportInternal". (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel_unittest.cc ('k') | webrtc/p2p/base/fakedtlstransport.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 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ 11 #ifndef WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_
12 #define WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ 12 #define WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/base/sslstreamadapter.h" 18 #include "webrtc/base/sslstreamadapter.h"
19 #include "webrtc/p2p/base/icetransportinternal.h" 19 #include "webrtc/p2p/base/icetransportinternal.h"
20 #include "webrtc/p2p/base/jseptransport.h" 20 #include "webrtc/p2p/base/jseptransport.h"
21 #include "webrtc/p2p/base/packettransportinterface.h" 21 #include "webrtc/p2p/base/packettransportinternal.h"
22 22
23 namespace cricket { 23 namespace cricket {
24 24
25 enum PacketFlags { 25 enum PacketFlags {
26 PF_NORMAL = 0x00, // A normal packet. 26 PF_NORMAL = 0x00, // A normal packet.
27 PF_SRTP_BYPASS = 0x01, // An encrypted SRTP packet; bypass any additional 27 PF_SRTP_BYPASS = 0x01, // An encrypted SRTP packet; bypass any additional
28 // crypto provided by the transport (e.g. DTLS) 28 // crypto provided by the transport (e.g. DTLS)
29 }; 29 };
30 30
31 // DtlsTransportInternal is an internal interface that does DTLS. 31 // DtlsTransportInternal is an internal interface that does DTLS.
32 // Once the public interface is supported, 32 // Once the public interface is supported,
33 // (https://www.w3.org/TR/webrtc/#rtcdtlstransport-interface) 33 // (https://www.w3.org/TR/webrtc/#rtcdtlstransport-interface)
34 // the DtlsTransportInterface will be split from this class. 34 // the DtlsTransportInterface will be split from this class.
35 class DtlsTransportInternal : public rtc::PacketTransportInterface { 35 class DtlsTransportInternal : public rtc::PacketTransportInternal {
36 public: 36 public:
37 virtual ~DtlsTransportInternal() {} 37 virtual ~DtlsTransportInternal() {}
38 38
39 virtual DtlsTransportState dtls_state() const = 0; 39 virtual DtlsTransportState dtls_state() const = 0;
40 40
41 virtual const std::string& transport_name() const = 0; 41 virtual const std::string& transport_name() const = 0;
42 42
43 virtual int component() const = 0; 43 virtual int component() const = 0;
44 44
45 virtual bool IsDtlsActive() const = 0; 45 virtual bool IsDtlsActive() const = 0;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 protected: 103 protected:
104 DtlsTransportInternal() {} 104 DtlsTransportInternal() {}
105 105
106 private: 106 private:
107 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal); 107 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportInternal);
108 }; 108 };
109 109
110 } // namespace cricket 110 } // namespace cricket
111 111
112 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_ 112 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTINTERNAL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel_unittest.cc ('k') | webrtc/p2p/base/fakedtlstransport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698