websocket_handshake_response_info.cc 790 B

123456789101112131415161718192021222324252627
  1. // Copyright 2014 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. #include "net/websockets/websocket_handshake_response_info.h"
  5. #include <string>
  6. #include "base/time/time.h"
  7. #include "net/http/http_response_headers.h"
  8. #include "url/gurl.h"
  9. namespace net {
  10. WebSocketHandshakeResponseInfo::WebSocketHandshakeResponseInfo(
  11. const GURL& url,
  12. scoped_refptr<HttpResponseHeaders> headers,
  13. const IPEndPoint& remote_endpoint,
  14. base::Time response_time)
  15. : url(url),
  16. headers(std::move(headers)),
  17. remote_endpoint(remote_endpoint),
  18. response_time(response_time) {}
  19. WebSocketHandshakeResponseInfo::~WebSocketHandshakeResponseInfo() = default;
  20. } // namespace net