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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/http_request_line.h
diff --git a/net/quic/http_request_line.h b/net/quic/http_request_line.h
new file mode 100644
index 0000000000000000000000000000000000000000..829498941af5702f0542ec1a674eb39537bc5a93
--- /dev/null
+++ b/net/quic/http_request_line.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_HTTP_REQUEST_LINE_H_
+#define NET_QUIC_HTTP_REQUEST_LINE_H_
+
+#include <string>
+
+#include "base/strings/string_piece.h"
+#include "net/spdy/spdy_header_block.h"
+#include "net/spdy/spdy_protocol.h"
+
+class HttpRequestLine {
+ public:
+ HttpRequestLine(base::StringPiece method,
+ base::StringPiece path,
+ base::StringPiece version,
+ base::StringPiece host);
+ ~HttpRequestLine();
+
+ static HttpRequestLine* FromSpdyHeaders(const net::SpdyHeaderBlock& headers);
+
+ base::StringPiece method() const { return method_; }
+ base::StringPiece path() const { return path_; }
+ base::StringPiece version() const { return version_; }
+ base::StringPiece host() const { return host_; }
+
+ std::string FullPath() const;
+
+ private:
+ std::string method_;
+ std::string path_;
+ std::string version_;
+ std::string host_;
+};
+
+#endif // NET_QUIC_HTTP_REQUEST_LINE_H_
« 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