QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright (c) 2012 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/third_party/quiche/src/quic/tools/quic_backend_response.h" |
| 6 | |
| 7 | namespace quic { |
| 8 | |
| 9 | QuicBackendResponse::ServerPushInfo::ServerPushInfo( |
| 10 | QuicUrl request_url, |
| 11 | spdy::SpdyHeaderBlock headers, |
| 12 | spdy::SpdyPriority priority, |
vasilvv | c48c871 | 2019-03-11 13:38:16 -0700 | [diff] [blame] | 13 | std::string body) |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 14 | : request_url(request_url), |
| 15 | headers(std::move(headers)), |
| 16 | priority(priority), |
| 17 | body(body) {} |
| 18 | |
| 19 | QuicBackendResponse::ServerPushInfo::ServerPushInfo(const ServerPushInfo& other) |
| 20 | : request_url(other.request_url), |
| 21 | headers(other.headers.Clone()), |
| 22 | priority(other.priority), |
| 23 | body(other.body) {} |
| 24 | |
| 25 | QuicBackendResponse::QuicBackendResponse() : response_type_(REGULAR_RESPONSE) {} |
| 26 | |
| 27 | QuicBackendResponse::~QuicBackendResponse() = default; |
| 28 | |
| 29 | } // namespace quic |