| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_DBUS_CHROME_PROXY_RESOLVER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_CHROME_PROXY_RESOLVER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DBUS_CHROME_PROXY_RESOLVER_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_CHROME_PROXY_RESOLVER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chromeos/dbus/services/proxy_resolution_service_provider.h" | 9 #include "chromeos/dbus/services/proxy_resolution_service_provider.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 // Chrome's implementation of ProxyResolverDelegate. | 13 // Chrome's implementation of ProxyResolverDelegate. |
| 14 class ChromeProxyResolverDelegate | 14 class ChromeProxyResolverDelegate : public ProxyResolverDelegate { |
| 15 : public ProxyResolverDelegate { | |
| 16 public: | 15 public: |
| 17 ChromeProxyResolverDelegate(); | 16 ChromeProxyResolverDelegate(); |
| 18 ~ChromeProxyResolverDelegate() override; | 17 ~ChromeProxyResolverDelegate() override; |
| 19 | 18 |
| 20 // ProxyResolverDelegate override. | 19 // ProxyResolverDelegate override. |
| 21 scoped_refptr<net::URLRequestContextGetter> GetRequestContext() override; | 20 scoped_refptr<net::URLRequestContextGetter> GetRequestContext() override; |
| 21 int ResolveProxy(net::ProxyService* proxy_service, |
| 22 const GURL& url, |
| 23 net::ProxyInfo* results, |
| 24 const net::CompletionCallback& callback) override; |
| 22 | 25 |
| 23 private: | 26 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(ChromeProxyResolverDelegate); | 27 DISALLOW_COPY_AND_ASSIGN(ChromeProxyResolverDelegate); |
| 25 }; | 28 }; |
| 26 | 29 |
| 27 } // namespace chromeos | 30 } // namespace chromeos |
| 28 | 31 |
| 29 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CHROME_PROXY_RESOLVER_DELEGATE_H_ | 32 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CHROME_PROXY_RESOLVER_DELEGATE_H_ |
| OLD | NEW |