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

Unified Diff: net/proxy/mojo_proxy_resolver_impl.h

Issue 939503004: Add LoadState reporting to the mojo proxy resolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proxy-resolver-mojo
Patch Set: rebase Created 5 years, 9 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
« no previous file with comments | « net/proxy/mojo_proxy_resolver_factory_impl_unittest.cc ('k') | net/proxy/mojo_proxy_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/mojo_proxy_resolver_impl.h
diff --git a/net/proxy/mojo_proxy_resolver_impl.h b/net/proxy/mojo_proxy_resolver_impl.h
index 2cbf8bbe70fba3a3bc6f372feffb446dc5136528..371427e51788e51d2e48d2a7e5b8860c1bd030cb 100644
--- a/net/proxy/mojo_proxy_resolver_impl.h
+++ b/net/proxy/mojo_proxy_resolver_impl.h
@@ -5,24 +5,27 @@
#ifndef NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_
#define NET_PROXY_MOJO_PROXY_RESOLVER_IMPL_H_
+#include <map>
#include <queue>
#include <set>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/interfaces/proxy_resolver_service.mojom.h"
+#include "net/proxy/proxy_resolver.h"
namespace net {
-class ProxyResolver;
-class ProxyResolverScriptData;
-
class MojoProxyResolverImpl : public interfaces::ProxyResolver {
public:
explicit MojoProxyResolverImpl(scoped_ptr<net::ProxyResolver> resolver);
~MojoProxyResolverImpl() override;
+ // Invoked when the LoadState of a request changes.
+ void LoadStateChanged(net::ProxyResolver::RequestHandle handle,
+ LoadState load_state);
+
private:
class Job;
@@ -53,6 +56,7 @@ class MojoProxyResolverImpl : public interfaces::ProxyResolver {
scoped_ptr<net::ProxyResolver> resolver_;
std::set<Job*> resolve_jobs_;
+ std::map<net::ProxyResolver::RequestHandle, Job*> request_handle_to_job_;
std::queue<SetPacScriptRequest> set_pac_script_requests_;
« no previous file with comments | « net/proxy/mojo_proxy_resolver_factory_impl_unittest.cc ('k') | net/proxy/mojo_proxy_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698