| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |