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

Side by Side Diff: content/public/browser/stream_info.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_ 6 #define CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "url/gurl.h" 13 #include "url/gurl.h"
13 14
14 namespace net { 15 namespace net {
15 class HttpResponseHeaders; 16 class HttpResponseHeaders;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 20
20 class StreamHandle; 21 class StreamHandle;
21 22
22 // A convenience structure for passing around both a StreamHandle and associated 23 // A convenience structure for passing around both a StreamHandle and associated
23 // metadata. The intent is so, when passing the stream's URL to a child process, 24 // metadata. The intent is so, when passing the stream's URL to a child process,
24 // the handle can be retained as long as it is needed while the rest of the 25 // the handle can be retained as long as it is needed while the rest of the
25 // StreamInfo is released. 26 // StreamInfo is released.
26 struct CONTENT_EXPORT StreamInfo { 27 struct CONTENT_EXPORT StreamInfo {
27 StreamInfo(); 28 StreamInfo();
28 ~StreamInfo(); 29 ~StreamInfo();
29 30
30 // The handle to the stream itself. 31 // The handle to the stream itself.
31 scoped_ptr<StreamHandle> handle; 32 std::unique_ptr<StreamHandle> handle;
32 33
33 // The original URL being redirected to this stream. 34 // The original URL being redirected to this stream.
34 GURL original_url; 35 GURL original_url;
35 36
36 // The MIME type associated with this stream. 37 // The MIME type associated with this stream.
37 std::string mime_type; 38 std::string mime_type;
38 39
39 // The HTTP response headers associated with this stream. 40 // The HTTP response headers associated with this stream.
40 scoped_refptr<net::HttpResponseHeaders> response_headers; 41 scoped_refptr<net::HttpResponseHeaders> response_headers;
41 42
42 DISALLOW_COPY_AND_ASSIGN(StreamInfo); 43 DISALLOW_COPY_AND_ASSIGN(StreamInfo);
43 }; 44 };
44 45
45 } // namespace content 46 } // namespace content
46 47
47 #endif // CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_ 48 #endif // CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_
OLDNEW
« no previous file with comments | « content/public/browser/ssl_host_state_delegate.h ('k') | content/public/browser/trace_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698