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

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

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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/asyncstuntcpsocket.h ('k') | webrtc/p2p/base/p2ptransport.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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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
(...skipping 27 matching lines...) Expand all
38 rtc::StreamResult Read(void* buffer, size_t buffer_len, 38 rtc::StreamResult Read(void* buffer, size_t buffer_len,
39 size_t* read, int* error) override; 39 size_t* read, int* error) override;
40 rtc::StreamResult Write(const void* data, size_t data_len, 40 rtc::StreamResult Write(const void* data, size_t data_len,
41 size_t* written, int* error) override; 41 size_t* written, int* error) override;
42 42
43 private: 43 private:
44 TransportChannel* channel_; // owned by DtlsTransportChannelWrapper 44 TransportChannel* channel_; // owned by DtlsTransportChannelWrapper
45 rtc::StreamState state_; 45 rtc::StreamState state_;
46 rtc::BufferQueue packets_; 46 rtc::BufferQueue packets_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(StreamInterfaceChannel); 48 RTC_DISALLOW_COPY_AND_ASSIGN(StreamInterfaceChannel);
49 }; 49 };
50 50
51 51
52 // This class provides a DTLS SSLStreamAdapter inside a TransportChannel-style 52 // This class provides a DTLS SSLStreamAdapter inside a TransportChannel-style
53 // packet-based interface, wrapping an existing TransportChannel instance 53 // packet-based interface, wrapping an existing TransportChannel instance
54 // (e.g a P2PTransportChannel) 54 // (e.g a P2PTransportChannel)
55 // Here's the way this works: 55 // Here's the way this works:
56 // 56 //
57 // DtlsTransportChannelWrapper { 57 // DtlsTransportChannelWrapper {
58 // SSLStreamAdapter* dtls_ { 58 // SSLStreamAdapter* dtls_ {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 rtc::scoped_ptr<rtc::SSLStreamAdapter> dtls_; // The DTLS stream 236 rtc::scoped_ptr<rtc::SSLStreamAdapter> dtls_; // The DTLS stream
237 StreamInterfaceChannel* downward_; // Wrapper for channel_, owned by dtls_. 237 StreamInterfaceChannel* downward_; // Wrapper for channel_, owned by dtls_.
238 std::vector<std::string> srtp_ciphers_; // SRTP ciphers to use with DTLS. 238 std::vector<std::string> srtp_ciphers_; // SRTP ciphers to use with DTLS.
239 State dtls_state_; 239 State dtls_state_;
240 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; 240 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_;
241 rtc::SSLRole ssl_role_; 241 rtc::SSLRole ssl_role_;
242 rtc::SSLProtocolVersion ssl_max_version_; 242 rtc::SSLProtocolVersion ssl_max_version_;
243 rtc::Buffer remote_fingerprint_value_; 243 rtc::Buffer remote_fingerprint_value_;
244 std::string remote_fingerprint_algorithm_; 244 std::string remote_fingerprint_algorithm_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper); 246 RTC_DISALLOW_COPY_AND_ASSIGN(DtlsTransportChannelWrapper);
247 }; 247 };
248 248
249 } // namespace cricket 249 } // namespace cricket
250 250
251 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_ 251 #endif // WEBRTC_P2P_BASE_DTLSTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/asyncstuntcpsocket.h ('k') | webrtc/p2p/base/p2ptransport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698