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

Side by Side Diff: chrome/browser/net/utility_process_mojo_proxy_resolver_factory.h

Issue 1017453005: Add support for ProxyResolverErrorObserver to ProxyResolverMojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/net/utility_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
6 #define CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 6 #define CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 15 matching lines...) Expand all
26 : public net::MojoProxyResolverFactory, 26 : public net::MojoProxyResolverFactory,
27 public mojo::ErrorHandler { 27 public mojo::ErrorHandler {
28 public: 28 public:
29 static UtilityProcessMojoProxyResolverFactory* GetInstance(); 29 static UtilityProcessMojoProxyResolverFactory* GetInstance();
30 30
31 // Overridden from net::MojoProxyResolverFactory: 31 // Overridden from net::MojoProxyResolverFactory:
32 scoped_ptr<base::ScopedClosureRunner> CreateResolver( 32 scoped_ptr<base::ScopedClosureRunner> CreateResolver(
33 const mojo::String& pac_script, 33 const mojo::String& pac_script,
34 mojo::InterfaceRequest<net::interfaces::ProxyResolver> req, 34 mojo::InterfaceRequest<net::interfaces::ProxyResolver> req,
35 net::interfaces::HostResolverPtr host_resolver, 35 net::interfaces::HostResolverPtr host_resolver,
36 net::interfaces::ProxyResolverErrorObserverPtr error_observer,
36 net::interfaces::ProxyResolverFactoryRequestClientPtr client) override; 37 net::interfaces::ProxyResolverFactoryRequestClientPtr client) override;
37 38
38 private: 39 private:
39 friend struct DefaultSingletonTraits<UtilityProcessMojoProxyResolverFactory>; 40 friend struct DefaultSingletonTraits<UtilityProcessMojoProxyResolverFactory>;
40 UtilityProcessMojoProxyResolverFactory(); 41 UtilityProcessMojoProxyResolverFactory();
41 ~UtilityProcessMojoProxyResolverFactory() override; 42 ~UtilityProcessMojoProxyResolverFactory() override;
42 43
43 // Overridden from mojo::ErrorHandler: 44 // Overridden from mojo::ErrorHandler:
44 void OnConnectionError() override; 45 void OnConnectionError() override;
45 46
(...skipping 14 matching lines...) Expand all
60 size_t num_proxy_resolvers_ = 0; 61 size_t num_proxy_resolvers_ = 0;
61 62
62 base::OneShotTimer<UtilityProcessMojoProxyResolverFactory> idle_timer_; 63 base::OneShotTimer<UtilityProcessMojoProxyResolverFactory> idle_timer_;
63 64
64 base::ThreadChecker thread_checker_; 65 base::ThreadChecker thread_checker_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory); 67 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoProxyResolverFactory);
67 }; 68 };
68 69
69 #endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_ 70 #endif // CHROME_BROWSER_NET_UTILITY_PROCESS_MOJO_PROXY_RESOLVER_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/utility_process_mojo_proxy_resolver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698