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

Unified Diff: remoting/protocol/audio_writer.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/protocol/audio_stub.h ('k') | remoting/protocol/audio_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_writer.h
diff --git a/remoting/protocol/audio_writer.h b/remoting/protocol/audio_writer.h
index 89de05649f2ef0b926577de89ea72ff25d08491e..7766dd34f422e027a9953b735d610e3d14b6e366 100644
--- a/remoting/protocol/audio_writer.h
+++ b/remoting/protocol/audio_writer.h
@@ -5,12 +5,12 @@
#ifndef REMOTING_PROTOCOL_AUDIO_WRITER_H_
#define REMOTING_PROTOCOL_AUDIO_WRITER_H_
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/audio_stub.h"
#include "remoting/protocol/channel_dispatcher_base.h"
@@ -29,18 +29,18 @@ class AudioWriter : public ChannelDispatcherBase,
public:
// Once AudioWriter is created, the Init() method of ChannelDispatcherBase
// should be used to initialize it for the session.
- static scoped_ptr<AudioWriter> Create(const SessionConfig& config);
+ static std::unique_ptr<AudioWriter> Create(const SessionConfig& config);
~AudioWriter() override;
// AudioStub interface.
- void ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
+ void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
const base::Closure& done) override;
private:
AudioWriter();
- void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) override;
+ void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override;
DISALLOW_COPY_AND_ASSIGN(AudioWriter);
};
« no previous file with comments | « remoting/protocol/audio_stub.h ('k') | remoting/protocol/audio_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698