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_ |