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

Side by Side Diff: webrtc/voice_engine/channel_manager.cc

Issue 1789903003: Replace scoped_ptr with unique_ptr in webrtc/call/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
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
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_(rtc::ScopedToUnique(RtcEventLog::Create())) {} 52 event_log_(RtcEventLog::Create()) {}
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
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
OLDNEW
« webrtc/call/rtc_event_log.cc ('K') | « webrtc/call/rtc_event_log_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698