1 // Copyright 2020 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 #ifndef NET_PROXY_RESOLUTION_PROXY_RESOLUTION_REQUEST_H_ 6 #define NET_PROXY_RESOLUTION_PROXY_RESOLUTION_REQUEST_H_ 7 8 #include "net/base/load_states.h" 9 #include "net/base/net_export.h" 10 11 namespace net { 12 13 // Used to track proxy resolution requests that complete asynchronously. 14 class NET_EXPORT ProxyResolutionRequest { 15 public: 16 ProxyResolutionRequest(const ProxyResolutionRequest&) = delete; 17 ProxyResolutionRequest& operator=(const ProxyResolutionRequest&) = delete; 18 19 virtual ~ProxyResolutionRequest() = default; 20 virtual LoadState GetLoadState() const = 0; 21 22 protected: 23 ProxyResolutionRequest() = default; 24 }; 25 26 } // namespace net 27 28 #endif // NET_PROXY_RESOLUTION_PROXY_RESOLUTION_REQUEST_H_ 29