Add ICU message format support
[chromium-blink-merge.git] / ios / net / http_response_headers_util.h
blob4bc00199b5f987fb342795438369fa209a8ce4ec
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
3 // found in the LICENSE file.
5 #ifndef IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
6 #define IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "net/http/http_response_headers.h"
11 @class NSHTTPURLResponse;
13 namespace net {
15 // Placeholder status description since the actual text from the headers is not
16 // available.
17 extern const std::string kDummyHttpStatusDescription;
19 // Constructs a net::HttpResponseHeaders from |response|.
20 // Note: The HTTP version and the status code description are not accessible
21 // from NSHTTPURLResponse, so HTTP/1.0 and kDummyHttpStatusDescription will
22 // be used in the status line instead.
23 scoped_refptr<HttpResponseHeaders> CreateHeadersFromNSHTTPURLResponse(
24 NSHTTPURLResponse* response);
26 } // namespace net
28 #endif // IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_