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

Side by Side Diff: chromecast/media/cma/ipc_streamer/decoder_buffer_base_marshaller.h

Issue 1875623002: Convert //chromecast 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_
6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ 6 #define CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_
7 7
8 #include <memory>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 11
11 namespace chromecast { 12 namespace chromecast {
12 namespace media { 13 namespace media {
13 class DecoderBufferBase; 14 class DecoderBufferBase;
14 class MediaMessage; 15 class MediaMessage;
15 16
16 class DecoderBufferBaseMarshaller { 17 class DecoderBufferBaseMarshaller {
17 public: 18 public:
18 // Writes the serialized structure of |config| into |msg|. 19 // Writes the serialized structure of |config| into |msg|.
19 static void Write( 20 static void Write(
20 const scoped_refptr<DecoderBufferBase>& buffer, MediaMessage* msg); 21 const scoped_refptr<DecoderBufferBase>& buffer, MediaMessage* msg);
21 22
22 // Returns a decoder buffer from its serialized structure. 23 // Returns a decoder buffer from its serialized structure.
23 static scoped_refptr<DecoderBufferBase> Read(scoped_ptr<MediaMessage> msg); 24 static scoped_refptr<DecoderBufferBase> Read(
25 std::unique_ptr<MediaMessage> msg);
24 }; 26 };
25 27
26 } // namespace media 28 } // namespace media
27 } // namespace chromecast 29 } // namespace chromecast
28 30
29 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_ 31 #endif // CHROMECAST_MEDIA_CMA_IPC_STREAMER_DECODER_BUFFER_BASE_MARSHALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698