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

Side by Side Diff: net/quic/core/spdy_utils.h

Issue 2363393004: Remove usage of BalsaHeaders from QuicClient. Also move QuicDataToResend from QuicClient to QuicCli… (Closed)
Patch Set: Fix win Created 4 years, 2 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 | « no previous file | net/quic/core/spdy_utils.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_QUIC_SPDY_UTILS_H_ 5 #ifndef NET_QUIC_SPDY_UTILS_H_
6 #define NET_QUIC_SPDY_UTILS_H_ 6 #define NET_QUIC_SPDY_UTILS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // values, or empty string if any of those fields are missing. 60 // values, or empty string if any of those fields are missing.
61 static std::string GetUrlFromHeaderBlock(const net::SpdyHeaderBlock& headers); 61 static std::string GetUrlFromHeaderBlock(const net::SpdyHeaderBlock& headers);
62 62
63 // Returns hostname, or empty std::string if missing. 63 // Returns hostname, or empty std::string if missing.
64 static std::string GetHostNameFromHeaderBlock(const SpdyHeaderBlock& headers); 64 static std::string GetHostNameFromHeaderBlock(const SpdyHeaderBlock& headers);
65 65
66 // Returns true if result of |GetUrlFromHeaderBlock()| is non-empty 66 // Returns true if result of |GetUrlFromHeaderBlock()| is non-empty
67 // and is a well-formed URL. 67 // and is a well-formed URL.
68 static bool UrlIsValid(const net::SpdyHeaderBlock& headers); 68 static bool UrlIsValid(const net::SpdyHeaderBlock& headers);
69 69
70 // Populates the fields of |headers| to make a GET request of |url|,
71 // which must be fully-qualified.
72 static bool PopulateHeaderBlockFromUrl(const std::string url,
73 SpdyHeaderBlock* headers);
74
70 private: 75 private:
71 DISALLOW_COPY_AND_ASSIGN(SpdyUtils); 76 DISALLOW_COPY_AND_ASSIGN(SpdyUtils);
72 }; 77 };
73 78
74 } // namespace net 79 } // namespace net
75 80
76 #endif // NET_QUIC_SPDY_UTILS_H_ 81 #endif // NET_QUIC_SPDY_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/spdy_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698