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

Unified Diff: net/proxy/proxy_server.h

Issue 552164: Merge 34903, 34928, 35008, 35549, 36054 to the 249s branch.... (Closed) Base URL: svn://chrome-svn/chrome/branches/249s/src/
Patch Set: Fix some other merge conflicts Created 10 years, 11 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/proxy_list_unittest.cc ('k') | net/proxy/proxy_service.h » ('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 37149)
+++ net/proxy/proxy_server.h (working copy)
@@ -101,6 +101,11 @@
static ProxyServer FromPacString(std::string::const_iterator pac_string_begin,
std::string::const_iterator pac_string_end);
+ // Returns a ProxyServer representing DIRECT connections.
+ static ProxyServer Direct() {
+ return ProxyServer(SCHEME_DIRECT, std::string(), -1);
+ }
+
// Format as a PAC result entry. This does the reverse of FromPacString().
std::string ToPacString() const;
« no previous file with comments | « net/proxy/proxy_list_unittest.cc ('k') | net/proxy/proxy_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698