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

Side by Side Diff: ios/net/http_response_headers_util.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add header 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_ 5 #ifndef IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
6 #define IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_ 6 #define IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
noyau (Ping after 24h) 2016/04/07 13:34:05 Not needed.
9
9 #include "net/http/http_response_headers.h" 10 #include "net/http/http_response_headers.h"
10 11
11 @class NSHTTPURLResponse; 12 @class NSHTTPURLResponse;
12 13
13 namespace net { 14 namespace net {
14 15
15 // Placeholder status description since the actual text from the headers is not 16 // Placeholder status description since the actual text from the headers is not
16 // available. 17 // available.
17 extern const std::string kDummyHttpStatusDescription; 18 extern const std::string kDummyHttpStatusDescription;
18 19
19 // Constructs a net::HttpResponseHeaders from |response|. 20 // Constructs a net::HttpResponseHeaders from |response|.
20 // Note: The HTTP version and the status code description are not accessible 21 // Note: The HTTP version and the status code description are not accessible
21 // from NSHTTPURLResponse, so HTTP/1.0 and kDummyHttpStatusDescription will 22 // from NSHTTPURLResponse, so HTTP/1.0 and kDummyHttpStatusDescription will
22 // be used in the status line instead. 23 // be used in the status line instead.
23 scoped_refptr<HttpResponseHeaders> CreateHeadersFromNSHTTPURLResponse( 24 scoped_refptr<HttpResponseHeaders> CreateHeadersFromNSHTTPURLResponse(
24 NSHTTPURLResponse* response); 25 NSHTTPURLResponse* response);
25 26
26 } // namespace net 27 } // namespace net
27 28
28 #endif // IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_ 29 #endif // IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698