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

Side by Side Diff: net/quic/http_request_line.h

Issue 337093003: QuicServer: Use Chrome's header parsing rather than Balsa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_server_3
Patch Set: (mark StringPieceUtils as copied, not added) Created 6 years, 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_HTTP_REQUEST_LINE_H_
6 #define NET_QUIC_HTTP_REQUEST_LINE_H_
7
8 #include <string>
9
10 #include "base/strings/string_piece.h"
11 #include "net/spdy/spdy_header_block.h"
12 #include "net/spdy/spdy_protocol.h"
13
14 class HttpRequestLine {
15 public:
16 HttpRequestLine(base::StringPiece method,
17 base::StringPiece path,
18 base::StringPiece version,
19 base::StringPiece host);
20 ~HttpRequestLine();
21
22 static HttpRequestLine* FromSpdyHeaders(const net::SpdyHeaderBlock& headers);
23
24 base::StringPiece method() const { return method_; }
25 base::StringPiece path() const { return path_; }
26 base::StringPiece version() const { return version_; }
27 base::StringPiece host() const { return host_; }
28
29 std::string FullPath() const;
30
31 private:
32 std::string method_;
33 std::string path_;
34 std::string version_;
35 std::string host_;
36 };
37
38 #endif // NET_QUIC_HTTP_REQUEST_LINE_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/quic/http_request_line.cc » ('j') | net/quic/http_request_line.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698