• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "quiche/quic/tools/quic_backend_response.h"
6 
7 namespace quic {
8 
ServerPushInfo(QuicUrl request_url,spdy::Http2HeaderBlock headers,spdy::SpdyPriority priority,std::string body)9 QuicBackendResponse::ServerPushInfo::ServerPushInfo(
10     QuicUrl request_url, spdy::Http2HeaderBlock headers,
11     spdy::SpdyPriority priority, std::string body)
12     : request_url(request_url),
13       headers(std::move(headers)),
14       priority(priority),
15       body(body) {}
16 
ServerPushInfo(const ServerPushInfo & other)17 QuicBackendResponse::ServerPushInfo::ServerPushInfo(const ServerPushInfo& other)
18     : request_url(other.request_url),
19       headers(other.headers.Clone()),
20       priority(other.priority),
21       body(other.body) {}
22 
QuicBackendResponse()23 QuicBackendResponse::QuicBackendResponse()
24     : response_type_(REGULAR_RESPONSE), delay_(QuicTime::Delta::Zero()) {}
25 
26 QuicBackendResponse::~QuicBackendResponse() = default;
27 
28 }  // namespace quic
29