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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Save selected candidate pair in transport channel. Created 4 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_P2P_BASE_CANDIDATEPAIR_H_
12 #define WEBRTC_P2P_BASE_CANDIDATEPAIR_H_
13
14 #include "webrtc/p2p/base/candidate.h"
15 #include "webrtc/p2p/base/candidatepairinterface.h"
16
17 namespace cricket {
18
19 class CandidatePair : public CandidatePairInterface {
20 public:
21 CandidatePair() = default;
22 explicit CandidatePair(const CandidatePairInterface& selected_candidate_pair)
23 : local_candidate_(selected_candidate_pair.local_candidate()),
24 remote_candidate_(selected_candidate_pair.remote_candidate()) {}
25 CandidatePair(const Candidate& local_candidate,
26 const Candidate& remote_candidate)
27 : local_candidate_(local_candidate),
28 remote_candidate_(remote_candidate) {}
29 ~CandidatePair() = default;
30 const Candidate& local_candidate() const override { return local_candidate_; }
31 const Candidate& remote_candidate() const override {
32 return remote_candidate_;
33 }
34
35 private:
36 Candidate local_candidate_;
37 Candidate remote_candidate_;
38 };
39
40 } // namespace cricket
41
42 #endif // WEBRTC_P2P_BASE_CANDIDATEPAIR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698