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

Unified Diff: net/proxy/proxy_config_service_fixed.h

Issue 15070: Split ProxyResolver into two interfaces:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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/net_lib.scons ('k') | net/proxy/proxy_config_service_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_config_service_fixed.h
===================================================================
--- net/proxy/proxy_config_service_fixed.h (revision 7227)
+++ net/proxy/proxy_config_service_fixed.h (working copy)
@@ -2,29 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_PROXY_PROXY_RESOLVER_FIXED_H_
-#define NET_PROXY_PROXY_RESOLVER_FIXED_H_
+#ifndef NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
+#define NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
#include "net/proxy/proxy_service.h"
namespace net {
-// Implementation of ProxyResolver that returns a fixed result.
-class ProxyResolverFixed : public ProxyResolver {
+// Implementation of ProxyConfigService that returns a fixed result.
+class ProxyConfigServiceFixed : public ProxyConfigService {
public:
- ProxyResolverFixed(const ProxyInfo& pi) { pi_.Use(pi); }
+ explicit ProxyConfigServiceFixed(const ProxyInfo& pi) { pi_.Use(pi); }
- // ProxyResolver methods:
- virtual int GetProxyConfig(ProxyConfig* config);
- virtual int GetProxyForURL(const GURL& query_url,
- const GURL& pac_url,
- ProxyInfo* results);
-
+ // ProxyConfigService methods:
+ virtual int GetProxyConfig(ProxyConfig* config) {
+ config->proxy_server = pi_.proxy_server();
+ return OK;
+ }
+
private:
ProxyInfo pi_;
};
} // namespace net
-#endif // NET_PROXY_PROXY_RESOLVER_FIXED_H_
+#endif // NET_PROXY_PROXY_CONFIG_SERVICE_FIXED_H_
Property changes on: net\proxy\proxy_config_service_fixed.h
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/net/proxy/proxy_resolver_fixed.h:r69-2775
« no previous file with comments | « net/net_lib.scons ('k') | net/proxy/proxy_config_service_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698