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

Unified Diff: net/spdy/buffered_spdy_framer.h

Issue 300553013: Add headers argument to BufferedSpdyFramerVisitorInterface::OnPushPromise (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip server unit test fix Created 6 years, 7 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
« no previous file with comments | « no previous file | net/spdy/buffered_spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.h
diff --git a/net/spdy/buffered_spdy_framer.h b/net/spdy/buffered_spdy_framer.h
index a77de753ab97c18ab8ecc88a1066c833567e4417..64aa0f786e04ba2d1a437f10b7dc9e3b5f77c632 100644
--- a/net/spdy/buffered_spdy_framer.h
+++ b/net/spdy/buffered_spdy_framer.h
@@ -100,7 +100,8 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramerVisitorInterface {
// Called when a PUSH_PROMISE frame has been parsed.
virtual void OnPushPromise(SpdyStreamId stream_id,
- SpdyStreamId promised_stream_id) = 0;
+ SpdyStreamId promised_stream_id,
+ const SpdyHeaderBlock& headers) = 0;
protected:
virtual ~BufferedSpdyFramerVisitorInterface() {}
@@ -196,6 +197,9 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
const char* data,
uint32 len,
SpdyDataFlags flags);
+ SpdyFrame* CreatePushPromise(SpdyStreamId stream_id,
+ SpdyStreamId promised_stream_id,
+ const SpdyHeaderBlock* headers);
// Serialize a frame of unknown type.
SpdySerializedFrame* SerializeFrame(const SpdyFrameIR& frame) {
@@ -252,6 +256,7 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
SpdyFrameType type;
SpdyStreamId stream_id;
SpdyStreamId associated_stream_id;
+ SpdyStreamId promised_stream_id;
SpdyPriority priority;
uint8 credential_slot;
bool fin;
« no previous file with comments | « no previous file | net/spdy/buffered_spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698