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

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

Issue 1015353003: Revert of Add a chromium based simple QUIC client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « net/net.gyp ('k') | net/tools/quic/quic_client.h » ('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 (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"
11 #include "net/spdy/spdy_header_block.h" 11 #include "net/spdy/spdy_header_block.h"
12 #include "net/spdy/spdy_protocol.h" 12 #include "net/spdy/spdy_protocol.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class HttpResponseInfo; 17 class HttpResponseInfo;
18 struct HttpRequestInfo; 18 struct HttpRequestInfo;
19 class HttpRequestHeaders; 19 class HttpRequestHeaders;
20 class HttpResponseHeaders; 20 class HttpResponseHeaders;
21 21
22 // Convert a SpdyHeaderBlock into an HttpResponseInfo. 22 // Convert a SpdyHeaderBlock into an HttpResponseInfo.
23 // |headers| input parameter with the SpdyHeaderBlock. 23 // |headers| input parameter with the SpdyHeaderBlock.
24 // |response| output parameter for the HttpResponseInfo. 24 // |response| output parameter for the HttpResponseInfo.
25 // Returns true if successfully converted. False if the SpdyHeaderBlock is 25 // Returns true if successfully converted. False if the SpdyHeaderBlock is
26 // incomplete (e.g. missing 'status' or 'version'). 26 // incomplete (e.g. missing 'status' or 'version').
27 NET_EXPORT_PRIVATE bool SpdyHeadersToHttpResponse( 27 bool SpdyHeadersToHttpResponse(const SpdyHeaderBlock& headers,
28 const SpdyHeaderBlock& headers, 28 SpdyMajorVersion protocol_version,
29 SpdyMajorVersion protocol_version, 29 HttpResponseInfo* response);
30 HttpResponseInfo* response);
31 30
32 // Create a SpdyHeaderBlock from HttpRequestInfo and HttpRequestHeaders. 31 // Create a SpdyHeaderBlock from HttpRequestInfo and HttpRequestHeaders.
33 NET_EXPORT_PRIVATE void CreateSpdyHeadersFromHttpRequest( 32 NET_EXPORT_PRIVATE void CreateSpdyHeadersFromHttpRequest(
34 const HttpRequestInfo& info, 33 const HttpRequestInfo& info,
35 const HttpRequestHeaders& request_headers, 34 const HttpRequestHeaders& request_headers,
36 SpdyMajorVersion protocol_version, 35 SpdyMajorVersion protocol_version,
37 bool direct, 36 bool direct,
38 SpdyHeaderBlock* headers); 37 SpdyHeaderBlock* headers);
39 38
40 // Create a SpdyHeaderBlock from HttpResponseHeaders. 39 // Create a SpdyHeaderBlock from HttpResponseHeaders.
(...skipping 12 matching lines...) Expand all
53 RequestPriority priority, 52 RequestPriority priority,
54 SpdyMajorVersion protocol_version); 53 SpdyMajorVersion protocol_version);
55 54
56 NET_EXPORT_PRIVATE RequestPriority ConvertSpdyPriorityToRequestPriority( 55 NET_EXPORT_PRIVATE RequestPriority ConvertSpdyPriorityToRequestPriority(
57 SpdyPriority priority, 56 SpdyPriority priority,
58 SpdyMajorVersion protocol_version); 57 SpdyMajorVersion protocol_version);
59 58
60 } // namespace net 59 } // namespace net
61 60
62 #endif // NET_SPDY_SPDY_HTTP_UTILS_H_ 61 #endif // NET_SPDY_SPDY_HTTP_UTILS_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/tools/quic/quic_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698