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

Unified Diff: remoting/protocol/host_video_dispatcher.cc

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/host_video_dispatcher.h ('k') | remoting/protocol/http_ice_config_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_video_dispatcher.cc
diff --git a/remoting/protocol/host_video_dispatcher.cc b/remoting/protocol/host_video_dispatcher.cc
index 759f9d66b18c43caec7be0c70b7d16a542f1f5da..f2b604e6e34f1125c17bb35d7a48b38a6d4805f4 100644
--- a/remoting/protocol/host_video_dispatcher.cc
+++ b/remoting/protocol/host_video_dispatcher.cc
@@ -22,14 +22,15 @@ HostVideoDispatcher::HostVideoDispatcher()
: ChannelDispatcherBase(kVideoChannelName) {}
HostVideoDispatcher::~HostVideoDispatcher() {}
-void HostVideoDispatcher::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
- const base::Closure& done) {
+void HostVideoDispatcher::ProcessVideoPacket(
+ std::unique_ptr<VideoPacket> packet,
+ const base::Closure& done) {
message_pipe()->Send(packet.get(), done);
}
void HostVideoDispatcher::OnIncomingMessage(
- scoped_ptr<CompoundBuffer> message) {
- scoped_ptr<VideoAck> ack = ParseMessage<VideoAck>(message.get());
+ std::unique_ptr<CompoundBuffer> message) {
+ std::unique_ptr<VideoAck> ack = ParseMessage<VideoAck>(message.get());
if (!ack)
return;
if (video_feedback_stub_)
« no previous file with comments | « remoting/protocol/host_video_dispatcher.h ('k') | remoting/protocol/http_ice_config_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698