diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 09:03:15 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 09:03:15 +0000 |
commit | 677c9057fafb4c263f001ded0e173075a945a4c2 (patch) | |
tree | ca4b253831c082fe4a7ccaba2ba3cae6f264615a /net/base | |
parent | 1b9cad81c98ec37ce2f6b4c3ef47571efc61bd3d (diff) | |
download | chromium_src-677c9057fafb4c263f001ded0e173075a945a4c2.zip chromium_src-677c9057fafb4c263f001ded0e173075a945a4c2.tar.gz chromium_src-677c9057fafb4c263f001ded0e173075a945a4c2.tar.bz2 |
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
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/load_flags.h | 4 | ||||
-rw-r--r-- | net/base/net_error_list.h | 3 |
2 files changed, 7 insertions, 0 deletions
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) |