protobuf_http_request_config.cc 679 B

12345678910111213141516171819202122
  1. // Copyright 2020 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 "remoting/base/protobuf_http_request_config.h"
  5. #include "third_party/protobuf/src/google/protobuf/message_lite.h"
  6. namespace remoting {
  7. ProtobufHttpRequestConfig::ProtobufHttpRequestConfig(
  8. const net::NetworkTrafficAnnotationTag& traffic_annotation)
  9. : traffic_annotation(traffic_annotation) {}
  10. ProtobufHttpRequestConfig::~ProtobufHttpRequestConfig() = default;
  11. void ProtobufHttpRequestConfig::Validate() const {
  12. DCHECK(request_message);
  13. DCHECK(!path.empty());
  14. }
  15. } // namespace remoting