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

Side by Side Diff: components/audio_modem/public/modem.h

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « components/audio_modem/modem_unittest.cc ('k') | components/audio_modem/test/random_samples.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_ 5 #ifndef COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_
6 #define COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_ 6 #define COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 #include "components/audio_modem/public/audio_modem_types.h" 11 #include "components/audio_modem/public/audio_modem_types.h"
12 12
13 namespace audio_modem { 13 namespace audio_modem {
14 14
15 class WhispernetClient; 15 class WhispernetClient;
16 16
17 class Modem { 17 class Modem {
18 public: 18 public:
19 virtual ~Modem() {} 19 virtual ~Modem() {}
20 20
(...skipping 10 matching lines...) Expand all
31 virtual void SetToken(AudioType type, 31 virtual void SetToken(AudioType type,
32 const std::string& url_safe_token) = 0; 32 const std::string& url_safe_token) = 0;
33 33
34 virtual const std::string GetToken(AudioType type) const = 0; 34 virtual const std::string GetToken(AudioType type) const = 0;
35 35
36 virtual bool IsPlayingTokenHeard(AudioType type) const = 0; 36 virtual bool IsPlayingTokenHeard(AudioType type) const = 0;
37 37
38 virtual void SetTokenParams(AudioType type, 38 virtual void SetTokenParams(AudioType type,
39 const TokenParameters& params) = 0; 39 const TokenParameters& params) = 0;
40 40
41 static scoped_ptr<Modem> Create(); 41 static std::unique_ptr<Modem> Create();
42 }; 42 };
43 43
44 } // namespace audio_modem 44 } // namespace audio_modem
45 45
46 #endif // COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_ 46 #endif // COMPONENTS_AUDIO_MODEM_PUBLIC_MODEM_H_
OLDNEW
« no previous file with comments | « components/audio_modem/modem_unittest.cc ('k') | components/audio_modem/test/random_samples.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698