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

Unified Diff: content/browser/streams/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/storage_partition_impl_unittest.cc ('k') | content/browser/streams/stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream.h
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h
index 3f3d06a6209fc2f9a8c55447b7c86efd99754dd5..1422da5ef248c656854b1bf0e6d57e1c56057474 100644
--- a/content/browser/streams/stream.h
+++ b/content/browser/streams/stream.h
@@ -82,7 +82,7 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
// and STREAM_COMPLETE if the stream is finalized and all data has been read.
StreamState ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read);
- scoped_ptr<StreamHandle> CreateHandle();
+ std::unique_ptr<StreamHandle> CreateHandle();
void CloseHandle();
// Indicates whether there is space in the buffer to add more data.
@@ -123,8 +123,8 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
// in order to check memory usage.
size_t last_total_buffered_bytes_;
- scoped_ptr<ByteStreamWriter> writer_;
- scoped_ptr<ByteStreamReader> reader_;
+ std::unique_ptr<ByteStreamWriter> writer_;
+ std::unique_ptr<ByteStreamReader> reader_;
StreamRegistry* registry_;
StreamReadObserver* read_observer_;
« no previous file with comments | « content/browser/storage_partition_impl_unittest.cc ('k') | content/browser/streams/stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698