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

Side by Side Diff: webrtc/common_audio/vad/vad.cc

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 7 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/common_audio/real_fourier.cc ('k') | webrtc/examples/peerconnection/client/conductor.cc » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #include "webrtc/common_audio/vad/include/vad.h" 11 #include "webrtc/common_audio/vad/include/vad.h"
12 12
13 #include <memory>
14
13 #include "webrtc/base/checks.h" 15 #include "webrtc/base/checks.h"
14 16
15 namespace webrtc { 17 namespace webrtc {
16 18
17 namespace { 19 namespace {
18 20
19 class VadImpl final : public Vad { 21 class VadImpl final : public Vad {
20 public: 22 public:
21 explicit VadImpl(Aggressiveness aggressiveness) 23 explicit VadImpl(Aggressiveness aggressiveness)
22 : handle_(nullptr), aggressiveness_(aggressiveness) { 24 : handle_(nullptr), aggressiveness_(aggressiveness) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Aggressiveness aggressiveness_; 56 Aggressiveness aggressiveness_;
55 }; 57 };
56 58
57 } // namespace 59 } // namespace
58 60
59 std::unique_ptr<Vad> CreateVad(Vad::Aggressiveness aggressiveness) { 61 std::unique_ptr<Vad> CreateVad(Vad::Aggressiveness aggressiveness) {
60 return std::unique_ptr<Vad>(new VadImpl(aggressiveness)); 62 return std::unique_ptr<Vad>(new VadImpl(aggressiveness));
61 } 63 }
62 64
63 } // namespace webrtc 65 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_audio/real_fourier.cc ('k') | webrtc/examples/peerconnection/client/conductor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698