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

Side by Side Diff: net/tools/quic/test_tools/push_promise_delegate.cc

Issue 2458793002: Server push cancellation: add PushPromiseHelper which reflects information on the push promise. (Closed)
Patch Set: sync and fix tests Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/tools/quic/test_tools/push_promise_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/tools/quic/test_tools/push_promise_delegate.h"
6
7 namespace net {
8 namespace test {
9 PushPromiseDelegate::PushPromiseDelegate(bool match)
10 : match_(match), rendezvous_fired_(false), rendezvous_stream_(nullptr) {}
11
12 bool PushPromiseDelegate::CheckVary(const SpdyHeaderBlock& client_request,
13 const SpdyHeaderBlock& promise_request,
14 const SpdyHeaderBlock& promise_response) {
15 DVLOG(1) << "match " << match_;
16 return match_;
17 }
18
19 void PushPromiseDelegate::OnRendezvousResult(QuicSpdyStream* stream) {
20 rendezvous_fired_ = true;
21 rendezvous_stream_ = stream;
22 }
23
24 } // namespace test
25 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/push_promise_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698