OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 return *this; | 42 return *this; |
43 } | 43 } |
44 | 44 |
45 ChannelOwner::ChannelRef::ChannelRef(class Channel* channel) | 45 ChannelOwner::ChannelRef::ChannelRef(class Channel* channel) |
46 : channel(channel), ref_count(1) {} | 46 : channel(channel), ref_count(1) {} |
47 | 47 |
48 ChannelManager::ChannelManager(uint32_t instance_id, const Config& config) | 48 ChannelManager::ChannelManager(uint32_t instance_id, const Config& config) |
49 : instance_id_(instance_id), | 49 : instance_id_(instance_id), |
50 last_channel_id_(-1), | 50 last_channel_id_(-1), |
51 config_(config), | 51 config_(config), |
52 event_log_(RtcEventLog::Create()) {} | 52 event_log_(RtcEventLog::Create(Clock::GetRealTimeClock())) {} |
53 | 53 |
54 ChannelOwner ChannelManager::CreateChannel() { | 54 ChannelOwner ChannelManager::CreateChannel() { |
55 return CreateChannelInternal(config_); | 55 return CreateChannelInternal(config_); |
56 } | 56 } |
57 | 57 |
58 ChannelOwner ChannelManager::CreateChannel(const Config& external_config) { | 58 ChannelOwner ChannelManager::CreateChannel(const Config& external_config) { |
59 return CreateChannelInternal(external_config); | 59 return CreateChannelInternal(external_config); |
60 } | 60 } |
61 | 61 |
62 ChannelOwner ChannelManager::CreateChannelInternal(const Config& config) { | 62 ChannelOwner ChannelManager::CreateChannelInternal(const Config& config) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 bool ChannelManager::Iterator::IsValid() { | 147 bool ChannelManager::Iterator::IsValid() { |
148 return iterator_pos_ < channels_.size(); | 148 return iterator_pos_ < channels_.size(); |
149 } | 149 } |
150 | 150 |
151 void ChannelManager::Iterator::Increment() { | 151 void ChannelManager::Iterator::Increment() { |
152 ++iterator_pos_; | 152 ++iterator_pos_; |
153 } | 153 } |
154 | 154 |
155 } // namespace voe | 155 } // namespace voe |
156 } // namespace webrtc | 156 } // namespace webrtc |
OLD | NEW |