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

Side by Side Diff: net/spdy/spdy_http_utils.h

Issue 9705046: Switch CreateSpdyHeadersFromHttpRequest to construct the correct headers based on the spdy protocol… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698