| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include "net/base/net_export.h" | 8 #include "net/base/net_export.h" |
| 9 #include "net/base/request_priority.h" | 9 #include "net/base/request_priority.h" |
| 10 #include "net/spdy/spdy_framer.h" | 10 #include "net/spdy/spdy_framer.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const HttpResponseHeaders& response_headers, | 41 const HttpResponseHeaders& response_headers, |
| 42 SpdyMajorVersion protocol_version, | 42 SpdyMajorVersion protocol_version, |
| 43 SpdyHeaderBlock* headers); | 43 SpdyHeaderBlock* headers); |
| 44 | 44 |
| 45 // Returns the URL associated with the |headers| by assembling the | 45 // Returns the URL associated with the |headers| by assembling the |
| 46 // scheme, host and path from the protocol specific keys. | 46 // scheme, host and path from the protocol specific keys. |
| 47 NET_EXPORT_PRIVATE GURL GetUrlFromHeaderBlock(const SpdyHeaderBlock& headers, | 47 NET_EXPORT_PRIVATE GURL GetUrlFromHeaderBlock(const SpdyHeaderBlock& headers, |
| 48 SpdyMajorVersion protocol_version, | 48 SpdyMajorVersion protocol_version, |
| 49 bool pushed); | 49 bool pushed); |
| 50 | 50 |
| 51 // The following two functions convert between SpdyPriority (typedef) and |
| 52 // RequestPriority (enum). |
| 53 |
| 51 NET_EXPORT_PRIVATE SpdyPriority ConvertRequestPriorityToSpdyPriority( | 54 NET_EXPORT_PRIVATE SpdyPriority ConvertRequestPriorityToSpdyPriority( |
| 52 RequestPriority priority, | 55 RequestPriority priority, |
| 53 SpdyMajorVersion protocol_version); | 56 SpdyMajorVersion protocol_version); |
| 54 | 57 |
| 55 NET_EXPORT_PRIVATE RequestPriority ConvertSpdyPriorityToRequestPriority( | 58 NET_EXPORT_PRIVATE RequestPriority ConvertSpdyPriorityToRequestPriority( |
| 56 SpdyPriority priority, | 59 SpdyPriority priority, |
| 57 SpdyMajorVersion protocol_version); | 60 SpdyMajorVersion protocol_version); |
| 58 | 61 |
| 59 } // namespace net | 62 } // namespace net |
| 60 | 63 |
| 61 #endif // NET_SPDY_SPDY_HTTP_UTILS_H_ | 64 #endif // NET_SPDY_SPDY_HTTP_UTILS_H_ |
| OLD | NEW |