#include "net/proxy_resolution/polling_proxy_config_service.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/observer_list.h"
#include "base/synchronization/lock.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "net/proxy_resolution/proxy_config_with_annotation.h"
namespace net {
class PollingProxyConfigService::Core
: public base::RefCountedThreadSafe<PollingProxyConfigService::Core> { … };
void PollingProxyConfigService::AddObserver(Observer* observer) { … }
void PollingProxyConfigService::RemoveObserver(Observer* observer) { … }
ProxyConfigService::ConfigAvailability
PollingProxyConfigService::GetLatestProxyConfig(
ProxyConfigWithAnnotation* config) { … }
void PollingProxyConfigService::OnLazyPoll() { … }
bool PollingProxyConfigService::UsesPolling() { … }
PollingProxyConfigService::PollingProxyConfigService(
base::TimeDelta poll_interval,
GetConfigFunction get_config_func,
const NetworkTrafficAnnotationTag& traffic_annotation)
: … { … }
PollingProxyConfigService::~PollingProxyConfigService() { … }
void PollingProxyConfigService::CheckForChangesNow() { … }
}