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

Side by Side Diff: webrtc/call.h

Issue 1226123005: Define Stream base classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review follow-up 3 Created 5 years, 5 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/stream.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
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 enum NetworkState {
72 kNetworkUp,
73 kNetworkDown,
74 };
75 struct Config { 71 struct Config {
76 Config() = delete; 72 Config() = delete;
77 explicit Config(newapi::Transport* send_transport) 73 explicit Config(newapi::Transport* send_transport)
78 : send_transport(send_transport) {} 74 : send_transport(send_transport) {}
79 75
80 static const int kDefaultStartBitrateBps; 76 static const int kDefaultStartBitrateBps;
81 77
82 // TODO(solenberg): Need to add media type to the interface for outgoing 78 // TODO(solenberg): Need to add media type to the interface for outgoing
83 // packets too. 79 // packets too.
84 newapi::Transport* send_transport = nullptr; 80 newapi::Transport* send_transport = nullptr;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // of maximum for entire Call. This should be fixed along with the above. 142 // of maximum for entire Call. This should be fixed along with the above.
147 // Specifying a start bitrate (>0) will currently reset the current bitrate 143 // Specifying a start bitrate (>0) will currently reset the current bitrate
148 // estimate. This is due to how the 'x-google-start-bitrate' flag is currently 144 // estimate. This is due to how the 'x-google-start-bitrate' flag is currently
149 // implemented. 145 // implemented.
150 virtual void SetBitrateConfig( 146 virtual void SetBitrateConfig(
151 const Config::BitrateConfig& bitrate_config) = 0; 147 const Config::BitrateConfig& bitrate_config) = 0;
152 virtual void SignalNetworkState(NetworkState state) = 0; 148 virtual void SignalNetworkState(NetworkState state) = 0;
153 149
154 virtual ~Call() {} 150 virtual ~Call() {}
155 }; 151 };
152
156 } // namespace webrtc 153 } // namespace webrtc
157 154
158 #endif // WEBRTC_CALL_H_ 155 #endif // WEBRTC_CALL_H_
OLDNEW
« no previous file with comments | « webrtc/audio_send_stream.h ('k') | webrtc/stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698