proxy_config_service_fixed.cc 612 B

12345678910111213141516171819202122
  1. // Copyright (c) 2011 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/proxy_resolution/proxy_config_service_fixed.h"
  5. namespace net {
  6. ProxyConfigServiceFixed::ProxyConfigServiceFixed(
  7. const ProxyConfigWithAnnotation& pc)
  8. : pc_(pc) {}
  9. ProxyConfigServiceFixed::~ProxyConfigServiceFixed() = default;
  10. ProxyConfigService::ConfigAvailability
  11. ProxyConfigServiceFixed::GetLatestProxyConfig(
  12. ProxyConfigWithAnnotation* config) {
  13. *config = pc_;
  14. return CONFIG_VALID;
  15. }
  16. } // namespace net