From 677c9057fafb4c263f001ded0e173075a945a4c2 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Wed, 10 Dec 2008 09:03:15 +0000 Subject: Add a ProxyScriptFetcher class for doing asynch downloads of PAC scripts.This object will be owned by ProxyService. It will be used to manage the fetching of PAC scripts (on the IO thread, using the primary URLRequestContext).BUG=74,2764 (partial) Review URL: http://codereview.chromium.org/13251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6699 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/load_flags.h | 4 ++++ net/base/net_error_list.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'net/base') diff --git a/net/base/load_flags.h b/net/base/load_flags.h index bf5e02f..7e3642a 100644 --- a/net/base/load_flags.h +++ b/net/base/load_flags.h @@ -64,6 +64,10 @@ enum { // An SDCH dictionary was advertised, and an SDCH encoded response is // possible. LOAD_SDCH_DICTIONARY_ADVERTISED = 1 << 14, + + // Do not resolve proxies. This override is used when downloading PAC files + // to avoid having a circular dependency. + LOAD_BYPASS_PROXY = 1 << 15, }; } // namespace net diff --git a/net/base/net_error_list.h b/net/base/net_error_list.h index d632fff..c7c66c0 100644 --- a/net/base/net_error_list.h +++ b/net/base/net_error_list.h @@ -220,6 +220,9 @@ NET_ERROR(EMPTY_RESPONSE, -324) // The headers section of the response is too large. NET_ERROR(RESPONSE_HEADERS_TOO_BIG, -325) + +// The PAC requested by HTTP did not have a valid status code (non-200). +NET_ERROR(PAC_STATUS_NOT_OK, -326) // The cache does not have the requested entry. NET_ERROR(CACHE_MISS, -400) -- cgit v1.1