xref: /aosp_15_r20/external/cronet/net/proxy_resolution/proxy_config_service_fixed.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2011 The Chromium Authors
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/proxy_resolution/proxy_config_service_fixed.h"
6 
7 namespace net {
8 
ProxyConfigServiceFixed(const ProxyConfigWithAnnotation & pc)9 ProxyConfigServiceFixed::ProxyConfigServiceFixed(
10     const ProxyConfigWithAnnotation& pc)
11     : pc_(pc) {}
12 
13 ProxyConfigServiceFixed::~ProxyConfigServiceFixed() = default;
14 
15 ProxyConfigService::ConfigAvailability
GetLatestProxyConfig(ProxyConfigWithAnnotation * config)16 ProxyConfigServiceFixed::GetLatestProxyConfig(
17     ProxyConfigWithAnnotation* config) {
18   *config = pc_;
19   return CONFIG_VALID;
20 }
21 
22 }  // namespace net
23