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

Unified Diff: media/blink/buffered_data_source.h

Issue 1904253002: Convert //media/blink 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/blink/active_loader.cc ('k') | media/blink/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_data_source.h
diff --git a/media/blink/buffered_data_source.h b/media/blink/buffered_data_source.h
index 57c2b0089f55ecc963b41b65da83bc02f7fcd157..9ffeb4068c2c3f1d4aff77bf86080a41390ec302 100644
--- a/media/blink/buffered_data_source.h
+++ b/media/blink/buffered_data_source.h
@@ -7,12 +7,12 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "media/base/data_source.h"
@@ -266,7 +266,7 @@ class MEDIA_BLINK_EXPORT BufferedDataSource
blink::WebFrame* frame_;
// A resource loader for the media resource.
- scoped_ptr<BufferedResourceLoader> loader_;
+ std::unique_ptr<BufferedResourceLoader> loader_;
// Callback method from the pipeline for initialization.
InitializeCB init_cb_;
@@ -274,7 +274,7 @@ class MEDIA_BLINK_EXPORT BufferedDataSource
// Read parameters received from the Read() method call. Must be accessed
// under |lock_|.
class ReadOperation;
- scoped_ptr<ReadOperation> read_op_;
+ std::unique_ptr<ReadOperation> read_op_;
// This buffer is intermediate, we use it for BufferedResourceLoader to write
// to. And when read in BufferedResourceLoader is done, we copy data from
« no previous file with comments | « media/blink/active_loader.cc ('k') | media/blink/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698