#include "net/proxy_resolution/network_delegate_error_observer.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "net/base/net_errors.h"
#include "net/base/network_delegate.h"
namespace net {
class NetworkDelegateErrorObserver::Core
: public base::RefCountedThreadSafe<NetworkDelegateErrorObserver::Core> { … };
NetworkDelegateErrorObserver::Core::Core(
NetworkDelegate* network_delegate,
base::SingleThreadTaskRunner* origin_runner)
: … { … }
NetworkDelegateErrorObserver::Core::~Core() = default;
void NetworkDelegateErrorObserver::Core::NotifyPACScriptError(
int line_number,
const std::u16string& error) { … }
void NetworkDelegateErrorObserver::Core::Shutdown() { … }
NetworkDelegateErrorObserver::NetworkDelegateErrorObserver(
NetworkDelegate* network_delegate,
base::SingleThreadTaskRunner* origin_runner)
: … { … }
NetworkDelegateErrorObserver::~NetworkDelegateErrorObserver() { … }
std::unique_ptr<ProxyResolverErrorObserver>
NetworkDelegateErrorObserver::Create(
NetworkDelegate* network_delegate,
const scoped_refptr<base::SingleThreadTaskRunner>& origin_runner) { … }
void NetworkDelegateErrorObserver::OnPACScriptError(
int line_number,
const std::u16string& error) { … }
}