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/api/udptransportinterface.h

Issue 2680273002: Adding more comments to every header file in api/ subdirectory. (Closed)
Patch Set: Merge with master 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/api/rtpsenderinterface.h ('k') | webrtc/api/videosourceproxy.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 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2017 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 // Calling with a "nil" (default-constructed) address is legal, and unsets 38 // Calling with a "nil" (default-constructed) address is legal, and unsets
39 // any previously set destination. 39 // any previously set destination.
40 // 40 //
41 // However, calling with an incomplete address (port or IP not set) will 41 // However, calling with an incomplete address (port or IP not set) will
42 // fail. 42 // fail.
43 virtual bool SetRemoteAddress(const rtc::SocketAddress& dest) = 0; 43 virtual bool SetRemoteAddress(const rtc::SocketAddress& dest) = 0;
44 // Simple getter. If never set, returns nil address. 44 // Simple getter. If never set, returns nil address.
45 virtual rtc::SocketAddress GetRemoteAddress() const = 0; 45 virtual rtc::SocketAddress GetRemoteAddress() const = 0;
46 }; 46 };
47 47
48 // TODO(deadbeef): Move this to .cc file and out of api/. What threads methods
49 // are called on is an implementation detail.
48 BEGIN_OWNED_PROXY_MAP(UdpTransport) 50 BEGIN_OWNED_PROXY_MAP(UdpTransport)
49 PROXY_WORKER_THREAD_DESTRUCTOR() 51 PROXY_WORKER_THREAD_DESTRUCTOR()
50 PROXY_WORKER_CONSTMETHOD0(rtc::SocketAddress, GetLocalAddress) 52 PROXY_WORKER_CONSTMETHOD0(rtc::SocketAddress, GetLocalAddress)
51 PROXY_WORKER_METHOD1(bool, SetRemoteAddress, const rtc::SocketAddress&) 53 PROXY_WORKER_METHOD1(bool, SetRemoteAddress, const rtc::SocketAddress&)
52 PROXY_WORKER_CONSTMETHOD0(rtc::SocketAddress, GetRemoteAddress) 54 PROXY_WORKER_CONSTMETHOD0(rtc::SocketAddress, GetRemoteAddress)
53 END_PROXY_MAP() 55 END_PROXY_MAP()
54 56
55 } // namespace webrtc 57 } // namespace webrtc
56 58
57 #endif // WEBRTC_API_UDPTRANSPORTINTERFACE_H_ 59 #endif // WEBRTC_API_UDPTRANSPORTINTERFACE_H_
OLDNEW
« no previous file with comments | « webrtc/api/rtpsenderinterface.h ('k') | webrtc/api/videosourceproxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698