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

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: rebase? 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
« no previous file with comments | « ios/net/http_cache_helper.cc ('k') | ios/net/protocol_handler_util_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
9 #include "net/http/http_response_headers.h" 8 #include "net/http/http_response_headers.h"
10 9
11 @class NSHTTPURLResponse; 10 @class NSHTTPURLResponse;
12 11
13 namespace net { 12 namespace net {
14 13
15 // Placeholder status description since the actual text from the headers is not 14 // Placeholder status description since the actual text from the headers is not
16 // available. 15 // available.
17 extern const std::string kDummyHttpStatusDescription; 16 extern const std::string kDummyHttpStatusDescription;
18 17
19 // Constructs a net::HttpResponseHeaders from |response|. 18 // Constructs a net::HttpResponseHeaders from |response|.
20 // Note: The HTTP version and the status code description are not accessible 19 // Note: The HTTP version and the status code description are not accessible
21 // from NSHTTPURLResponse, so HTTP/1.0 and kDummyHttpStatusDescription will 20 // from NSHTTPURLResponse, so HTTP/1.0 and kDummyHttpStatusDescription will
22 // be used in the status line instead. 21 // be used in the status line instead.
23 scoped_refptr<HttpResponseHeaders> CreateHeadersFromNSHTTPURLResponse( 22 scoped_refptr<HttpResponseHeaders> CreateHeadersFromNSHTTPURLResponse(
24 NSHTTPURLResponse* response); 23 NSHTTPURLResponse* response);
25 24
26 } // namespace net 25 } // namespace net
27 26
28 #endif // IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_ 27 #endif // IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
OLDNEW
« no previous file with comments | « ios/net/http_cache_helper.cc ('k') | ios/net/protocol_handler_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698