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

Side by Side Diff: webrtc/call/syncable.h

Issue 3011943002: Move optional.h to webrtc/api/ (Closed)
Patch Set: Created 3 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/call/rtp_rtcp_demuxer_helper.h ('k') | webrtc/call/video_config.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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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
11 // Syncable is used by RtpStreamsSynchronizer in VideoReceiveStream, and 11 // Syncable is used by RtpStreamsSynchronizer in VideoReceiveStream, and
12 // implemented by AudioReceiveStream. 12 // implemented by AudioReceiveStream.
13 13
14 #ifndef WEBRTC_CALL_SYNCABLE_H_ 14 #ifndef WEBRTC_CALL_SYNCABLE_H_
15 #define WEBRTC_CALL_SYNCABLE_H_ 15 #define WEBRTC_CALL_SYNCABLE_H_
16 16
17 #include <stdint.h> 17 #include <stdint.h>
18 18
19 #include "webrtc/rtc_base/optional.h" 19 #include "webrtc/api/optional.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 class Syncable { 23 class Syncable {
24 public: 24 public:
25 struct Info { 25 struct Info {
26 int64_t latest_receive_time_ms = 0; 26 int64_t latest_receive_time_ms = 0;
27 uint32_t latest_received_capture_timestamp = 0; 27 uint32_t latest_received_capture_timestamp = 0;
28 uint32_t capture_time_ntp_secs = 0; 28 uint32_t capture_time_ntp_secs = 0;
29 uint32_t capture_time_ntp_frac = 0; 29 uint32_t capture_time_ntp_frac = 0;
30 uint32_t capture_time_source_clock = 0; 30 uint32_t capture_time_source_clock = 0;
31 int current_delay_ms = 0; 31 int current_delay_ms = 0;
32 }; 32 };
33 33
34 virtual ~Syncable(); 34 virtual ~Syncable();
35 35
36 virtual int id() const = 0; 36 virtual int id() const = 0;
37 virtual rtc::Optional<Info> GetInfo() const = 0; 37 virtual rtc::Optional<Info> GetInfo() const = 0;
38 virtual uint32_t GetPlayoutTimestamp() const = 0; 38 virtual uint32_t GetPlayoutTimestamp() const = 0;
39 virtual void SetMinimumPlayoutDelay(int delay_ms) = 0; 39 virtual void SetMinimumPlayoutDelay(int delay_ms) = 0;
40 }; 40 };
41 } // namespace webrtc 41 } // namespace webrtc
42 42
43 #endif // WEBRTC_CALL_SYNCABLE_H_ 43 #endif // WEBRTC_CALL_SYNCABLE_H_
OLDNEW
« no previous file with comments | « webrtc/call/rtp_rtcp_demuxer_helper.h ('k') | webrtc/call/video_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698