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

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

Issue 1545793002: Add PushResponse() in QuicSimpleServerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110546286
Patch Set: 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 | « no previous file | net/tools/quic/quic_simple_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_simple_server_stream.h
diff --git a/net/tools/quic/quic_simple_server_stream.h b/net/tools/quic/quic_simple_server_stream.h
index 8e6c94face96da358b91c46bd1524e13e469a8b7..aa31ef2057547ea6001424e8b4fa5e96b7d8b53b 100644
--- a/net/tools/quic/quic_simple_server_stream.h
+++ b/net/tools/quic/quic_simple_server_stream.h
@@ -37,6 +37,11 @@ class QuicSimpleServerStream : public QuicSpdyStream {
// data (or a FIN) to be read.
void OnDataAvailable() override;
+ // Make this stream start from as if it just finished parsing an incoming
+ // request whose headers are equivalent to |push_request_headers|.
+ // Doing so will trigger this toy stream to fetch response and send it back.
+ virtual void PushResponse(SpdyHeaderBlock push_request_headers);
+
// The response body of error responses.
static const char* const kErrorResponseBody;
« no previous file with comments | « no previous file | net/tools/quic/quic_simple_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698