Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: net/proxy/proxy_resolver_v8_tracing_wrapper.cc

Issue 2299963002: Reland "Change ProxyResolver::GetProxyForURL() to take a unique_ptr<Request>* " (Closed)
Patch Set: remove fields proposed by eroman Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/proxy/proxy_resolver_v8_tracing_wrapper.cc
diff --git a/net/proxy/proxy_resolver_v8_tracing_wrapper.cc b/net/proxy/proxy_resolver_v8_tracing_wrapper.cc
index c99916cee16ab236307d246329f88c571b741346..06bc9c694a628fc7c097ce63bfdc31944c92d6d6 100644
--- a/net/proxy/proxy_resolver_v8_tracing_wrapper.cc
+++ b/net/proxy/proxy_resolver_v8_tracing_wrapper.cc
@@ -96,13 +96,9 @@ class ProxyResolverV8TracingWrapper : public ProxyResolver {
int GetProxyForURL(const GURL& url,
ProxyInfo* results,
const CompletionCallback& callback,
- RequestHandle* request,
+ std::unique_ptr<Request>* request,
const NetLogWithSource& net_log) override;
- void CancelRequest(RequestHandle request) override;
-
- LoadState GetLoadState(RequestHandle request) const override;
-
private:
std::unique_ptr<ProxyResolverV8Tracing> resolver_impl_;
NetLog* net_log_;
@@ -126,7 +122,7 @@ int ProxyResolverV8TracingWrapper::GetProxyForURL(
const GURL& url,
ProxyInfo* results,
const CompletionCallback& callback,
- RequestHandle* request,
+ std::unique_ptr<Request>* request,
const NetLogWithSource& net_log) {
resolver_impl_->GetProxyForURL(
url, results, callback, request,
@@ -135,15 +131,6 @@ int ProxyResolverV8TracingWrapper::GetProxyForURL(
return ERR_IO_PENDING;
}
-void ProxyResolverV8TracingWrapper::CancelRequest(RequestHandle request) {
- resolver_impl_->CancelRequest(request);
-}
-
-LoadState ProxyResolverV8TracingWrapper::GetLoadState(
- RequestHandle request) const {
- return resolver_impl_->GetLoadState(request);
-}
-
} // namespace
ProxyResolverFactoryV8TracingWrapper::ProxyResolverFactoryV8TracingWrapper(
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing_unittest.cc ('k') | net/proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698