summaryrefslogtreecommitdiffstats
path: root/net/proxy
Commit message (Collapse)AuthorAgeFilesLines
* Add MessageLoopProxy::currentnduca@chromium.org2011-08-156-7/+7
| | | | | | Review URL: http://codereview.chromium.org/7583053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96819 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE.darin@chromium.org2011-08-1229-60/+61
| | | | | | Review URL: http://codereview.chromium.org/7529043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96560 0039d316-1c4b-4281-b951-d872f2087c98
* Fixup bad include and usage of BASE_API, which should be BASE_EXPORT.darin@chromium.org2011-08-051-1/+0
| | | | | | | TBR=rvargas@chromium.org Review URL: http://codereview.chromium.org/7582007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95619 0039d316-1c4b-4281-b951-d872f2087c98
* HostResolver: don't interpret NULL callback argument as a request to do ↵agayev@chromium.org2011-08-041-0/+7
| | | | | | | | | | | synchronous resolution. BUG=90547,60149 TEST=net_unittests Review URL: http://codereview.chromium.org/7492059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95509 0039d316-1c4b-4281-b951-d872f2087c98
* Add onAuthRequired signal to the webRequest APIjochen@chromium.org2011-08-031-0/+2
| | | | | | | | | | BUG=none TEST=api test Review URL: http://codereview.chromium.org/7538024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95308 0039d316-1c4b-4281-b951-d872f2087c98
* mac: Components build for netthakis@chromium.org2011-07-291-1/+2
| | | | | | | | | | BUG=90078 TEST=none Review URL: http://codereview.chromium.org/7529017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94629 0039d316-1c4b-4281-b951-d872f2087c98
* HostResolverImpl: don't interpret NULL callback argument as a request to do ↵agayev@chromium.org2011-07-281-0/+5
| | | | | | | | | | | synchronous resolution. BUG=90547,60149 TEST=net_unittests Review URL: http://codereview.chromium.org/7520026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94552 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 94412 - HostResolverImpl: don't interpret NULL callback argument as a ↵agayev@chromium.org2011-07-281-5/+0
| | | | | | | | | | | | | | request to do synchronous resolution. BUG=90547,60149 TEST=net_unittests --gtest_filter="HostResolverImplTest*" Review URL: http://codereview.chromium.org/7465046 TBR=agayev@chromium.org Review URL: http://codereview.chromium.org/7524018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94417 0039d316-1c4b-4281-b951-d872f2087c98
* HostResolverImpl: don't interpret NULL callback argument as a request to do ↵agayev@chromium.org2011-07-281-0/+5
| | | | | | | | | | | synchronous resolution. BUG=90547,60149 TEST=net_unittests --gtest_filter="HostResolverImplTest*" Review URL: http://codereview.chromium.org/7465046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94412 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE throughout net/proxy/*eroman@chromium.org2011-07-2229-197/+217
| | | | | | | | In the process I discovered 2 dummy virtual overrides of NetworkDelegate interface. (Interface it was trying to overwrite no longer exists). Review URL: http://codereview.chromium.org/7484010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93664 0039d316-1c4b-4281-b951-d872f2087c98
* some cleanup for base/stl_utildilmah@chromium.org2011-07-193-3/+3
| | | | | | | | | | | | | removed unused/irrelevant functions removed irrelevant comments Moved stl_util-inl.h => stl_util.h BUG=None TEST=None Review URL: http://codereview.chromium.org/7342047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93110 0039d316-1c4b-4281-b951-d872f2087c98
* Replace onRequestSent with onSendHeaders in webrequest APIbattre@chromium.org2011-07-141-2/+1
| | | | | | | | | | | | | | | This CL replaces the onRequestSent signal of the webrequest API with a new onSendHeader signal. The sequence is now: onBeforeRequest -> onBeforeSendHeaders -> onSendHeaders. This change allows us to completely remove the webrequest API from the network transaction layer and stay in the URL request layer. That solve the problem that the network layer may convert one URLRequest to multiple HTTP requests which should be transparent to the webrequest API. It also solves the problem that requests answered from the cache did not trigger an onRequestSent event. Given the choice of removing onRequestSent completely and replacing it with onSendHeaders, I chose the latter so that extensions can see the headers sent to the network after other extensions had a chance to modify them. BUG=no TEST=no Review URL: http://codereview.chromium.org/7353021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92584 0039d316-1c4b-4281-b951-d872f2087c98
* Make the URLRequestContext constantbattre@chromium.org2011-07-141-1/+1
| | | | | | | | | | | | | The URLRequestContext is basically a collection of pointers to other data structures. This CL makes sure that these pointers are not easily modified after the construction of the URLRequestContext. BUG=67597 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92511 Review URL: http://codereview.chromium.org/7322010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92521 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92511 - Make the URLRequestContext constantbattre@chromium.org2011-07-141-1/+1
| | | | | | | | | | | | | | The URLRequestContext is basically a collection of pointers to other data structures. This CL makes sure that these pointers are not easily modified after the construction of the URLRequestContext. BUG=67597 TEST=no Review URL: http://codereview.chromium.org/7322010 TBR=battre@chromium.org Review URL: http://codereview.chromium.org/7366005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92512 0039d316-1c4b-4281-b951-d872f2087c98
* Make the URLRequestContext constantbattre@chromium.org2011-07-141-1/+1
| | | | | | | | | | | The URLRequestContext is basically a collection of pointers to other data structures. This CL makes sure that these pointers are not easily modified after the construction of the URLRequestContext. BUG=67597 TEST=no Review URL: http://codereview.chromium.org/7322010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92511 0039d316-1c4b-4281-b951-d872f2087c98
* Make MultiThreadedProxyResolver resistant to crashes when leaked.willchan@chromium.org2011-07-131-6/+7
| | | | | | | | | | | | | | | Sometimes ProfileIOData gets leaked on shutdown due to buggy code. If MultiThreadedProxyResolver doesn't get destroyed on shutdown, it can try to post to a MessageLoop that has already been destroyed, leading to a use after free crash. BUG=none TEST=none Review URL: http://codereview.chromium.org/7356012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92376 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/values.h into the base namespace. This includes a cros DEPS rolldmazzoni@chromium.org2011-07-121-1/+3
| | | | | | | | | | with a minor change to that code since libcros also uses base/values.h. BUG=88666 TEST=none Review URL: http://codereview.chromium.org/7259019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92208 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ReuseTest memory handling.joi@chromium.org2011-07-041-8/+10
| | | | | | | | | BUG=87616 TEST=net_unittests Review URL: http://codereview.chromium.org/7290011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91473 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add NET_API to more code to enable buildingrvargas@google.com2011-06-301-1/+2
| | | | | | | | | | | a shared net library on Linux, and update base and crypto API definitions. BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7240021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91234 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leak introduced by unit test, unflake timing-dependent test.joi@chromium.org2011-06-291-5/+22
| | | | | | | | | | | Remove exclusions for TSAN and Dr. Memory. BUG=87616,86756 TEST=net_unittests Review URL: http://codereview.chromium.org/7277011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90908 0039d316-1c4b-4281-b951-d872f2087c98
* Moved OnBeforeHeadersSent of webRequest API to url_request_http_job.ccbattre@chromium.org2011-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This CL moves the OnBeforeSendHeaders signal from net_http_transaction.cc and net_cache_transaction.cc to url_request_http_job.cc. We do this for several reasons: - deep in the http stack one URL Request can be split into several http requests (with different byte ranges). - We do not want to expose this implementation detail to extension authors. - It is not sufficient to submit only the first OnBeforeSendHeaders event to the extension: If the extension modifies the headers, this modification should apply to all http requests. - from an architectural perspective we do not want to go too deep in order to allow changing the network stack implementation without being limited by the published Extension API (needs to be backwards compatible) BUG=60101 TEST=no Review URL: http://codereview.chromium.org/7039010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90753 0039d316-1c4b-4281-b951-d872f2087c98
* Do GetAdaptersAddresses on a worker thread.joi@chromium.org2011-06-234-66/+253
| | | | | | | | | BUG=84047 TEST=net_unittests Review URL: http://codereview.chromium.org/7189016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90258 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize member variables.jhawkins@chromium.org2011-06-211-3/+28
| | | | | | | | | | | | | CID=9299,13805,14203,14284,14459,15435,15897,16023,16614,16773,16819,16820, 16908,16916 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7215027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89897 0039d316-1c4b-4281-b951-d872f2087c98
* net: Fix more regressions for net.dllrvargas@google.com2011-06-202-1/+3
| | | | | | | | BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7202014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89759 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89628 - Revert 89489 - net: don't check revocation when fetching PAC ↵cevans@chromium.org2011-06-202-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | files. If a PAC file is configured on an HTTPS URL we get into trouble. In order to check revocation we need to make an HTTP request to the OCSP/CRL server, which needs the PAC script to load and so we deadlock. With this change we don't check revocation for PAC fetches. BUG=86219 TEST=Configure a PAC script on HTTPS. Review URL: http://codereview.chromium.org/7170026 TBR=agl@chromium.org NOTE: I'll roll this back in if it turns out unrelated to the ProxyEvents failure. Review URL: http://codereview.chromium.org/7204023 TBR=cevans@chromium.org Review URL: http://codereview.chromium.org/7204025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89634 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89629 - Revert 89486 - Revert 87047 - Revert 86422 - Make DHCP WPAD ↵cevans@chromium.org2011-06-203-4/+8
| | | | | | | | | | | | | | | | | | | | | on by default. Reason: Turning back on for trunk to collect data as performance worries are addressed. BUG=18575,84047 TEST=Run Chrome on Windows without any flags. Enable auto-detect in proxy configuration. Net log should show attempts to auto-detect via DHCP. Review URL: http://codereview.chromium.org/7167016 TBR=joi@chromium.org NOTE: I'll roll it back in if it turns out this wasn't the problem. Review URL: http://codereview.chromium.org/7200025 TBR=cevans@chromium.org Review URL: http://codereview.chromium.org/7204024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89633 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89486 - Revert 87047 - Revert 86422 - Make DHCP WPAD on by default.cevans@chromium.org2011-06-193-8/+4
| | | | | | | | | | | | | | | | Reason: Turning back on for trunk to collect data as performance worries are addressed. BUG=18575,84047 TEST=Run Chrome on Windows without any flags. Enable auto-detect in proxy configuration. Net log should show attempts to auto-detect via DHCP. Review URL: http://codereview.chromium.org/7167016 TBR=joi@chromium.org NOTE: I'll roll it back in if it turns out this wasn't the problem. Review URL: http://codereview.chromium.org/7200025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89629 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 89489 - net: don't check revocation when fetching PAC files.cevans@chromium.org2011-06-192-33/+1
| | | | | | | | | | | | | | | | | | | | | If a PAC file is configured on an HTTPS URL we get into trouble. In order to check revocation we need to make an HTTP request to the OCSP/CRL server, which needs the PAC script to load and so we deadlock. With this change we don't check revocation for PAC fetches. BUG=86219 TEST=Configure a PAC script on HTTPS. Review URL: http://codereview.chromium.org/7170026 TBR=agl@chromium.org NOTE: I'll roll this back in if it turns out unrelated to the ProxyEvents failure. Review URL: http://codereview.chromium.org/7204023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89628 0039d316-1c4b-4281-b951-d872f2087c98
* net: don't check revocation when fetching PAC files.agl@chromium.org2011-06-172-1/+33
| | | | | | | | | | | | | | | | If a PAC file is configured on an HTTPS URL we get into trouble. In order to check revocation we need to make an HTTP request to the OCSP/CRL server, which needs the PAC script to load and so we deadlock. With this change we don't check revocation for PAC fetches. BUG=86219 TEST=Configure a PAC script on HTTPS. Review URL: http://codereview.chromium.org/7170026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89489 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87047 - Revert 86422 - Make DHCP WPAD on by default.joi@chromium.org2011-06-173-4/+8
| | | | | | | | | | | Reason: Turning back on for trunk to collect data as performance worries are addressed. BUG=18575,84047 TEST=Run Chrome on Windows without any flags. Enable auto-detect in proxy configuration. Net log should show attempts to auto-detect via DHCP. Review URL: http://codereview.chromium.org/7167016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89486 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the HostResolverImpl::Shutdown() method.eroman@chromium.org2011-06-159-83/+103
| | | | | | | | | | | | | | | This was originally needed to avoid crashing when the HostResolverImpl was being leaked, by forcing things to a "shutdown" state. However since HostResolverImpl is no longer reference counted, this work-around is no longer necessary. The other place that HostResolver::Shutdown() was used, was in SyncHostResolverBridge. It overrode it to unblock synchronous host resolves and avoid deadlock during shutdown. To accomodate this user, I added a separate interface (SyncHostResolver) to expose the shutdown method. Lastly, fixed a leak of SyncHostResolverBridge by moving ownership of the dependency into ProxyResolverJSBindings. BUG=74572,76427,18373 Review URL: http://codereview.chromium.org/7046097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89167 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: base/scoped_ptr.h -> base/memory/scoped_ptr.h. (part 2)thestig@chromium.org2011-06-151-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7149008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89131 0039d316-1c4b-4281-b951-d872f2087c98
* Change the files in base and net to include foundation_util.hwtc@chromium.org2011-06-142-4/+5
| | | | | | | | | | | | instead of mac_util.h. R=rohitrao@chromium.org,mark@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7145016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89040 0039d316-1c4b-4281-b951-d872f2087c98
* Cancel when InitProxyResolver cancels, so we don't use callback later.joi@chromium.org2011-06-133-1/+76
| | | | | | | | | | | | Also fix the invariant of data, i.e. null client_callback_ once we enter state DONE. BUG=84496 TEST=net_unittests --gtest_filter=Dhcp*:InitProxy* Review URL: http://codereview.chromium.org/7044058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88829 0039d316-1c4b-4281-b951-d872f2087c98
* Changes to have chrome building with net.dllrvargas@google.com2011-06-031-1/+1
| | | | | | | | BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7056049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87873 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: add an extra CHECK to try and figure out bugs 75508 and 84673.mdm@chromium.org2011-06-021-1/+10
| | | | | | | | BUG=75508,84673 Review URL: http://codereview.chromium.org/7066044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87588 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86422 - Make DHCP WPAD on by default.joi@chromium.org2011-05-273-9/+5
| | | | | | | | | | | Reason: Turning off for M13 branch based on some concerns from user experience metrics. Will re-enable after M13 branch point. BUG=18575,84047 TEST=Run Chrome on Windows without any flags. Enable auto-detect in proxy configuration. Net log should show attempts to auto-detect via DHCP. Review URL: http://codereview.chromium.org/7082004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87047 0039d316-1c4b-4281-b951-d872f2087c98
* Fix scope issues in DHCP WPAD code pointed out by jar@.joi@chromium.org2011-05-267-45/+63
| | | | | | | | | BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/7064028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86821 0039d316-1c4b-4281-b951-d872f2087c98
* Make DHCP WPAD on by default.joi@chromium.org2011-05-243-4/+7
| | | | | | | | | BUG=18575 TEST=Run Chrome on Windows without any flags. Enable auto-detect in proxy configuration. Net log should show attempts to auto-detect via DHCP. Review URL: http://codereview.chromium.org/7034035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86422 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics for DHCP WPAD feature. Fix memory overwrite.joi@chromium.org2011-05-243-3/+75
| | | | | | | | | BUG=18575 TEST=net_unittests Review URL: http://codereview.chromium.org/6975027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86421 0039d316-1c4b-4281-b951-d872f2087c98
* Kill URLRequestJobTracker.willchan@chromium.org2011-05-221-1/+5
| | | | | | | | | | BUG=81160 TEST=none Review URL: http://codereview.chromium.org/7043007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86241 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add NET_API to a few more files.rvargas@google.com2011-05-214-8/+12
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/7056019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86181 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: split ProxyConfigServiceLinux::SettingGetter::Setting into several ↵mdm@chromium.org2011-05-203-75/+78
| | | | | | | | enums, one for each type of setting. This provides additional type safety. Review URL: http://codereview.chromium.org/7033040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86149 0039d316-1c4b-4281-b951-d872f2087c98
* LBYL on GSettingsbacker@chromium.org2011-05-201-5/+20
| | | | | | | | | | | | | | Fixes a regression from r85968. On my Ubuntu 10.10 box, g_settings_new does not fail gracefully if the schema is not found: it calls an assert. This checks if the schema exists first. The docs for g_settings_list_schemas specify not to modify or release the return value. BUG=83376 TEST=by hand and trybots Review URL: http://codereview.chromium.org/6990008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86140 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add net_api to the proxy code.rvargas@google.com2011-05-1922-37/+57
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/7011055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85974 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: add support to get proxy settings from GSettings, if available.mdm@chromium.org2011-05-191-16/+393
| | | | | | | | | | | | We dynamically load the necessary symbols since these APIs aren't available in all versions of the glib libraries we target. We also do some checks to figure out whether to use gsettings of gconf settings. This works on both Ubuntu 11.04 (where we should use gconf) and Fedora 15 (gsettings). BUG=80453 Review URL: http://codereview.chromium.org/6999016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85968 0039d316-1c4b-4281-b951-d872f2087c98
* Fix flaky DHCP WPAD tests. In part, switch to deterministic ways ofjoi@chromium.org2011-05-192-26/+39
| | | | | | | | | | | | deciding test state. Where this is not possible, use more conservative timeouts via TestTimeouts. BUG=82988,82991 TEST=net_unittests Review URL: http://codereview.chromium.org/7045008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85908 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of 85854 which is a revert of 85852 - Add a command line optionrtenneti@chromium.org2011-05-191-0/+1
| | | | | | | | | | | | | | | ("host-resolver-retry-attempts") to specify the number of retry attempts to resolve host. Relanding CL http://codereview.chromium.org/7011044/ BUG=82580 TEST=host resolver unit tests TBR=eroman Review URL: http://codereview.chromium.org/7011044 Review URL: http://codereview.chromium.org/7029050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85871 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85852 - Add a command line option ("host-resolver-retry-attempts")rtenneti@chromium.org2011-05-191-1/+0
| | | | | | | | | | | | | | | to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 TBR=rtenneti@chromium.org Review URL: http://codereview.chromium.org/7044027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85854 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line option ("host-resolver-retry-attempts")rtenneti@chromium.org2011-05-191-0/+1
| | | | | | | | | | | | to specify the number of retry attempts to resolve host. BUG=82580 TEST=host resolver unit tests R=eroman Review URL: http://codereview.chromium.org/7011044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85852 0039d316-1c4b-4281-b951-d872f2087c98