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

Side by Side Diff: webrtc/call.h

Issue 1273363005: Add send transports to individual webrtc::Call streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase+comment 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/audio_send_stream.h ('k') | webrtc/test/call_test.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 (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_CALL_H_ 10 #ifndef WEBRTC_CALL_H_
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 protected: 62 protected:
63 virtual ~LoadObserver() {} 63 virtual ~LoadObserver() {}
64 }; 64 };
65 65
66 // A Call instance can contain several send and/or receive streams. All streams 66 // A Call instance can contain several send and/or receive streams. All streams
67 // are assumed to have the same remote endpoint and will share bitrate estimates 67 // are assumed to have the same remote endpoint and will share bitrate estimates
68 // etc. 68 // etc.
69 class Call { 69 class Call {
70 public: 70 public:
71 struct Config { 71 struct Config {
72 Config() = delete;
73 explicit Config(newapi::Transport* send_transport)
74 : send_transport(send_transport) {}
75
76 static const int kDefaultStartBitrateBps; 72 static const int kDefaultStartBitrateBps;
77 73
78 // TODO(solenberg): Need to add media type to the interface for outgoing
79 // packets too.
80 newapi::Transport* send_transport = nullptr;
81
82 // VoiceEngine used for audio/video synchronization for this Call. 74 // VoiceEngine used for audio/video synchronization for this Call.
83 VoiceEngine* voice_engine = nullptr; 75 VoiceEngine* voice_engine = nullptr;
84 76
85 // Callback for overuse and normal usage based on the jitter of incoming 77 // Callback for overuse and normal usage based on the jitter of incoming
86 // captured frames. 'nullptr' disables the callback. 78 // captured frames. 'nullptr' disables the callback.
87 LoadObserver* overuse_callback = nullptr; 79 LoadObserver* overuse_callback = nullptr;
88 80
89 // Bitrate config used until valid bitrate estimates are calculated. Also 81 // Bitrate config used until valid bitrate estimates are calculated. Also
90 // used to cap total bitrate used. 82 // used to cap total bitrate used.
91 struct BitrateConfig { 83 struct BitrateConfig {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual void SetBitrateConfig( 138 virtual void SetBitrateConfig(
147 const Config::BitrateConfig& bitrate_config) = 0; 139 const Config::BitrateConfig& bitrate_config) = 0;
148 virtual void SignalNetworkState(NetworkState state) = 0; 140 virtual void SignalNetworkState(NetworkState state) = 0;
149 141
150 virtual ~Call() {} 142 virtual ~Call() {}
151 }; 143 };
152 144
153 } // namespace webrtc 145 } // namespace webrtc
154 146
155 #endif // WEBRTC_CALL_H_ 147 #endif // WEBRTC_CALL_H_
OLDNEW
« no previous file with comments | « webrtc/audio_send_stream.h ('k') | webrtc/test/call_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698