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

Side by Side Diff: remoting/host/ipc_audio_capturer.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 | « remoting/host/ipc_audio_capturer.h ('k') | remoting/host/ipc_desktop_environment.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/ipc_audio_capturer.h" 5 #include "remoting/host/ipc_audio_capturer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "remoting/host/desktop_session_proxy.h" 9 #include "remoting/host/desktop_session_proxy.h"
10 #include "remoting/proto/audio.pb.h" 10 #include "remoting/proto/audio.pb.h"
(...skipping 11 matching lines...) Expand all
22 22
23 bool IpcAudioCapturer::Start(const PacketCapturedCallback& callback) { 23 bool IpcAudioCapturer::Start(const PacketCapturedCallback& callback) {
24 DCHECK(callback_.is_null()); 24 DCHECK(callback_.is_null());
25 DCHECK(!callback.is_null()); 25 DCHECK(!callback.is_null());
26 26
27 callback_ = callback; 27 callback_ = callback;
28 desktop_session_proxy_->SetAudioCapturer(weak_factory_.GetWeakPtr()); 28 desktop_session_proxy_->SetAudioCapturer(weak_factory_.GetWeakPtr());
29 return true; 29 return true;
30 } 30 }
31 31
32 void IpcAudioCapturer::OnAudioPacket(scoped_ptr<AudioPacket> packet) { 32 void IpcAudioCapturer::OnAudioPacket(std::unique_ptr<AudioPacket> packet) {
33 callback_.Run(std::move(packet)); 33 callback_.Run(std::move(packet));
34 } 34 }
35 35
36 } // namespace remoting 36 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/ipc_audio_capturer.h ('k') | remoting/host/ipc_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698