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

Unified Diff: content/browser/byte_stream.h

Issue 1874893002: Convert //content/browser 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 | « content/browser/browser_thread_unittest.cc ('k') | content/browser/byte_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/byte_stream.h
diff --git a/content/browser/byte_stream.h b/content/browser/byte_stream.h
index 85906458b37ebedf68c0f780235196ad750d898f..1a86c72374c1b431cf425b675f226b8b855aea88 100644
--- a/content/browser/byte_stream.h
+++ b/content/browser/byte_stream.h
@@ -7,9 +7,10 @@
#include <stddef.h>
+#include <memory>
+
#include "base/callback.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "net/base/io_buffer.h"
@@ -62,8 +63,8 @@ namespace content {
//
// void OriginatingClass::Initialize() {
// // Create a stream for sending bytes from IO->FILE threads.
-// scoped_ptr<ByteStreamWriter> writer;
-// scoped_ptr<ByteStreamReader> reader;
+// std::unique_ptr<ByteStreamWriter> writer;
+// std::unique_ptr<ByteStreamReader> reader;
// CreateByteStream(
// BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
// BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
@@ -82,7 +83,7 @@ namespace content {
// // thread.
// void OriginatingClass::SpaceAvailable() {
// while (<data available>) {
-// scoped_ptr<net::IOBuffer> buffer;
+// std::unique_ptr<net::IOBuffer> buffer;
// size_t buffer_length;
// // Create IOBuffer, fill in with data, and set buffer_length.
// if (!writer->Write(buffer, buffer_length)) {
@@ -197,8 +198,8 @@ CONTENT_EXPORT void CreateByteStream(
scoped_refptr<base::SequencedTaskRunner> input_task_runner,
scoped_refptr<base::SequencedTaskRunner> output_task_runner,
size_t buffer_size,
- scoped_ptr<ByteStreamWriter>* input,
- scoped_ptr<ByteStreamReader>* output);
+ std::unique_ptr<ByteStreamWriter>* input,
+ std::unique_ptr<ByteStreamReader>* output);
} // namespace content
« no previous file with comments | « content/browser/browser_thread_unittest.cc ('k') | content/browser/byte_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698