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

Unified Diff: net/tools/quic/quic_spdy_server_stream.h

Issue 1521993006: Rename QuicSpdyServerStream to QuicSimpleServerStream. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@109918216
Patch Set: correct NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ Created 5 years 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
« no previous file with comments | « net/tools/quic/quic_simple_server_stream_test.cc ('k') | net/tools/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_server_stream.h
diff --git a/net/tools/quic/quic_spdy_server_stream.h b/net/tools/quic/quic_spdy_server_stream.h
deleted file mode 100644
index 3951187702444df002f707d8b16c484452bcb9b4..0000000000000000000000000000000000000000
--- a/net/tools/quic/quic_spdy_server_stream.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// 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_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
-#define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_spdy_stream.h"
-#include "net/spdy/spdy_framer.h"
-
-namespace net {
-
-class QuicSpdySession;
-
-namespace tools {
-
-namespace test {
-class QuicSpdyServerStreamPeer;
-} // namespace test
-
-// All this does right now is aggregate data, and on fin, send an HTTP
-// response.
-class QuicSpdyServerStream : public QuicSpdyStream {
- public:
- QuicSpdyServerStream(QuicStreamId id, QuicSpdySession* session);
- ~QuicSpdyServerStream() override;
-
- // QuicSpdyStream
- void OnInitialHeadersComplete(bool fin, size_t frame_len) override;
- void OnTrailingHeadersComplete(bool fin, size_t frame_len) override;
-
- // ReliableQuicStream implementation called by the sequencer when there is
- // data (or a FIN) to be read.
- void OnDataAvailable() override;
-
- // The response body of error responses.
- static const char* const kErrorResponseBody;
-
- protected:
- // Sends a basic 200 response using SendHeaders for the headers and WriteData
- // for the body.
- virtual void SendResponse();
-
- // Sends a basic 500 response using SendHeaders for the headers and WriteData
- // for the body
- virtual void SendErrorResponse();
-
- void SendHeadersAndBody(const SpdyHeaderBlock& response_headers,
- base::StringPiece body);
- void SendHeadersAndBodyAndTrailers(const SpdyHeaderBlock& response_headers,
- base::StringPiece body,
- const SpdyHeaderBlock& response_trailers);
-
- SpdyHeaderBlock* request_headers() { return &request_headers_; }
-
- const std::string& body() { return body_; }
-
- private:
- friend class test::QuicSpdyServerStreamPeer;
-
- // The parsed headers received from the client.
- SpdyHeaderBlock request_headers_;
- int content_length_;
- std::string body_;
-
- DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream);
-};
-
-} // namespace tools
-} // namespace net
-
-#endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
« no previous file with comments | « net/tools/quic/quic_simple_server_stream_test.cc ('k') | net/tools/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698