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

Unified Diff: remoting/client/audio_decode_scheduler.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/vlog_net_log.cc ('k') | remoting/client/audio_decode_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/audio_decode_scheduler.h
diff --git a/remoting/client/audio_decode_scheduler.h b/remoting/client/audio_decode_scheduler.h
index a3c3c3b0ed4d7bdbe85bdffdb6c7aace0b53e67a..767342f011edf79ddb37bc5303367846a957cef1 100644
--- a/remoting/client/audio_decode_scheduler.h
+++ b/remoting/client/audio_decode_scheduler.h
@@ -5,9 +5,10 @@
#ifndef REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
#define REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/audio_stub.h"
namespace base {
@@ -29,14 +30,14 @@ class AudioDecodeScheduler : public protocol::AudioStub {
AudioDecodeScheduler(
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
- scoped_ptr<AudioPlayer> audio_player);
+ std::unique_ptr<AudioPlayer> audio_player);
~AudioDecodeScheduler() override;
// Initializes decoder with the information from the protocol config.
void Initialize(const protocol::SessionConfig& config);
// AudioStub implementation.
- void ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
+ void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
const base::Closure& done) override;
private:
« no previous file with comments | « remoting/base/vlog_net_log.cc ('k') | remoting/client/audio_decode_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698