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

Unified Diff: net/proxy/proxy_server.h

Issue 463028: Separate ProxyResolverMac and ProxyConfigServiceMac into their own files (Closed)
Patch Set: '' Created 11 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/proxy/proxy_resolver_mac.cc ('k') | net/proxy/proxy_server_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_server.h
===================================================================
--- net/proxy/proxy_server.h (revision 34241)
+++ net/proxy/proxy_server.h (working copy)
@@ -5,6 +5,12 @@
#ifndef NET_PROXY_PROXY_SERVER_H_
#define NET_PROXY_PROXY_SERVER_H_
+#include "build/build_config.h"
+
+#if defined(OS_MACOSX)
+#include <CoreFoundation/CoreFoundation.h>
+#endif
+
#include <string>
namespace net {
@@ -101,6 +107,19 @@
static ProxyServer FromPacString(std::string::const_iterator pac_string_begin,
std::string::const_iterator pac_string_end);
+#if defined(OS_MACOSX)
+ // Utility function to pull out a host/port pair from a dictionary and return
+ // it as a ProxyServer object. Pass in a dictionary that has a value for the
+ // host key and optionally a value for the port key. In the error condition
+ // where the host value is especially malformed, returns an invalid
+ // ProxyServer.
+ static ProxyServer FromDictionary(Scheme scheme,
+ CFDictionaryRef dict,
+ CFStringRef host_key,
+ CFStringRef port_key);
+#endif
+
+
// Format as a PAC result entry. This does the reverse of FromPacString().
std::string ToPacString() const;
« no previous file with comments | « net/proxy/proxy_resolver_mac.cc ('k') | net/proxy/proxy_server_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698