| OLD | NEW |
| (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 | |
| OLD | NEW |