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

Side by Side Diff: content/renderer/pepper/ppb_video_decoder_impl.h

Issue 1873783003: Convert //content/renderer 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 PP_VideoDecoder_Profile profile); 63 PP_VideoDecoder_Profile profile);
64 // Returns the associated PPP_VideoDecoder_Dev interface to use when 64 // Returns the associated PPP_VideoDecoder_Dev interface to use when
65 // making calls on the plugin. This fetches the interface lazily. For 65 // making calls on the plugin. This fetches the interface lazily. For
66 // out-of-process plugins, this means a synchronous message to the plugin, 66 // out-of-process plugins, this means a synchronous message to the plugin,
67 // so it's important to never call this in response to a synchronous 67 // so it's important to never call this in response to a synchronous
68 // plugin->renderer message (such as the Create message). 68 // plugin->renderer message (such as the Create message).
69 const PPP_VideoDecoder_Dev* GetPPP(); 69 const PPP_VideoDecoder_Dev* GetPPP();
70 70
71 // This is NULL before initialization, and after destruction. 71 // This is NULL before initialization, and after destruction.
72 // Holds a GpuVideoDecodeAcceleratorHost. 72 // Holds a GpuVideoDecodeAcceleratorHost.
73 scoped_ptr<media::VideoDecodeAccelerator> decoder_; 73 std::unique_ptr<media::VideoDecodeAccelerator> decoder_;
74 74
75 // The interface to use when making calls on the plugin. For the most part, 75 // The interface to use when making calls on the plugin. For the most part,
76 // methods should not use this directly but should call GetPPP() instead. 76 // methods should not use this directly but should call GetPPP() instead.
77 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 77 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 79 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
80 }; 80 };
81 81
82 } // namespace content 82 } // namespace content
83 83
84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_ 84 #endif // CONTENT_RENDERER_PEPPER_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_var_deprecated_impl.cc ('k') | content/renderer/pepper/renderer_ppapi_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698