OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_SPDY_SPDY_HTTP_UTILS_H_ | 5 #ifndef NET_SPDY_SPDY_HTTP_UTILS_H_ |
6 #define NET_SPDY_SPDY_HTTP_UTILS_H_ | 6 #define NET_SPDY_SPDY_HTTP_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
10 #include "net/base/request_priority.h" | 10 #include "net/base/request_priority.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Returns true if successfully converted. False if the SpdyHeaderBlock is | 22 // Returns true if successfully converted. False if the SpdyHeaderBlock is |
23 // incomplete (e.g. missing 'status' or 'version'). | 23 // incomplete (e.g. missing 'status' or 'version'). |
24 bool SpdyHeadersToHttpResponse(const spdy::SpdyHeaderBlock& headers, | 24 bool SpdyHeadersToHttpResponse(const spdy::SpdyHeaderBlock& headers, |
25 HttpResponseInfo* response); | 25 HttpResponseInfo* response); |
26 | 26 |
27 // Create a SpdyHeaderBlock for a Spdy SYN_STREAM Frame from | 27 // Create a SpdyHeaderBlock for a Spdy SYN_STREAM Frame from |
28 // HttpRequestInfo and HttpRequestHeaders. | 28 // HttpRequestInfo and HttpRequestHeaders. |
29 void CreateSpdyHeadersFromHttpRequest(const HttpRequestInfo& info, | 29 void CreateSpdyHeadersFromHttpRequest(const HttpRequestInfo& info, |
30 const HttpRequestHeaders& request_headers, | 30 const HttpRequestHeaders& request_headers, |
31 spdy::SpdyHeaderBlock* headers, | 31 spdy::SpdyHeaderBlock* headers, |
| 32 int protocol_version, |
32 bool direct); | 33 bool direct); |
33 | 34 |
34 NET_EXPORT_PRIVATE int ConvertRequestPriorityToSpdyPriority( | 35 NET_EXPORT_PRIVATE int ConvertRequestPriorityToSpdyPriority( |
35 RequestPriority priority); | 36 RequestPriority priority); |
36 | 37 |
37 } // namespace net | 38 } // namespace net |
38 | 39 |
39 #endif // NET_SPDY_SPDY_HTTP_UTILS_H_ | 40 #endif // NET_SPDY_SPDY_HTTP_UTILS_H_ |
OLD | NEW |