summaryrefslogtreecommitdiffstats
path: root/net/url_request
Commit message (Collapse)AuthorAgeFilesLines
* net: Add namespace net to more files. Part 2.tfarina@chromium.org2010-12-205-39/+52
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5980003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69689 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestStartEventParameters.tfarina@chromium.org2010-12-172-5/+13
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5999002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69588 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to more files.tfarina@chromium.org2010-12-175-20/+32
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5921005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69498 0039d316-1c4b-4281-b951-d872f2087c98
* Cache certificate verification results in memory.wtc@google.com2010-12-163-0/+11
| | | | | | | | | R=agl BUG=63357 TEST=none Review URL: http://codereview.chromium.org/5386001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69414 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestErrorJob.tfarina@chromium.org2010-12-153-7/+15
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5863001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69228 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestSimpleJob.tfarina@chromium.org2010-12-152-9/+15
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5847001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69214 0039d316-1c4b-4281-b951-d872f2087c98
* Add /media to whitelist so it can be accessed with file:// protocol on ChromeOS.achuith@chromium.org2010-12-141-0/+1
| | | | | | | | | BUG=chromium-os:3412,chromium-os:3292 TEST=On a ChromeOS device, file://media should now be accessible. Review URL: http://codereview.chromium.org/5785002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69113 0039d316-1c4b-4281-b951-d872f2087c98
* Deinline even more destructors.erg@google.com2010-12-142-1/+5
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69084 0039d316-1c4b-4281-b951-d872f2087c98
* Even more virtual method deinlining.erg@google.com2010-12-132-1/+5
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5741001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69041 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestHttpJob.tfarina@chromium.org2010-12-135-158/+169
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5682009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68986 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestDataJob.tfarina@chromium.org2010-12-123-9/+14
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5804002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68972 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestFileJob.tfarina@chromium.org2010-12-123-33/+41
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5755004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68959 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestFtpJob.tfarina@chromium.org2010-12-123-45/+53
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5739005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68952 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequestAboutJob.tfarina@chromium.org2010-12-113-8/+16
| | | | | | | | | BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/5797003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68950 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestJob URLRequestJob;tfarina@chromium.org2010-12-1125-89/+89
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5607004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68935 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetInstance() method for singleton classes under chrome/service ↵satish@chromium.org2010-12-096-20/+42
| | | | | | | | | | | | | | | | | | | | and /net. This is a small step towards making all singleton classes use the Singleton<T> pattern within their code and not expect the callers to know about it. This CL includes files under chrome/service and /net with related files elsewhere. Suggested files to focus for reviewers: - @sanjeevr for chrome/common and chrome/service - @ukai for net/websockets - @agl for rest of net BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68722 0039d316-1c4b-4281-b951-d872f2087c98
* Add the "virtual" keyword on method overrides that are missing it.erg@google.com2010-12-083-9/+10
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5648004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68606 0039d316-1c4b-4281-b951-d872f2087c98
* Move more code from headers to implementation.erg@google.com2010-12-072-1/+3
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5624002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68534 0039d316-1c4b-4281-b951-d872f2087c98
* Also register read cookies in the content settings delegate.jochen@chromium.org2010-12-071-33/+36
| | | | | | | | | BUG=63663 TEST=unit tests Review URL: http://codereview.chromium.org/5318002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68458 0039d316-1c4b-4281-b951-d872f2087c98
* Stop adding more refcounts to some more URLRequestJob subtypes.willchan@chromium.org2010-12-036-28/+40
| | | | | | | | | | | Switch to using ScopedRunnableMethodFactory::NewRunnableMethod(). BUG=63692 TEST=existing Review URL: http://codereview.chromium.org/5532005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68204 0039d316-1c4b-4281-b951-d872f2087c98
* Make the cookie list a class (instead of a typedef inside CookieMonster)...jochen@chromium.org2010-12-031-1/+1
| | | | | | | | | | | ...so it can be forward declared BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5462002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68173 0039d316-1c4b-4281-b951-d872f2087c98
* Fix URLRequestHttpJob to use ScopedRunnableMethodFactory.willchan@chromium.org2010-12-032-9/+21
| | | | | | | | | | | This will prevent us from leaking SSLClientSockets on shutdown since the certificate related functions complete asynchronously. There's no reason to keep the URLRequestHttpJob alive, since Kill() will cancel the delegates appropriately, so we use ScopedRunnableMethodFactory to avoid AddRef()'ing when we PostTask(). BUG=63692 TEST=existing Review URL: http://codereview.chromium.org/5556004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68153 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequest URLRequest;tfarina@chromium.org2010-11-3027-184/+200
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5384002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67762 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)thestig@chromium.org2010-11-303-12/+10
| | | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5139006 TBR=thestig@chromium.org Review URL: http://codereview.chromium.org/5270010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67674 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 10)thestig@chromium.org2010-11-303-10/+12
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5139006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67662 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add namespace net to URLRequest and URLRequestJob classes.tfarina@chromium.org2010-11-2818-51/+74
| | | | | | | | | BUG=64263 TEST=compiled locally and trybots Review URL: http://codereview.chromium.org/5298008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67497 0039d316-1c4b-4281-b951-d872f2087c98
* Make URLRequestThrottlerEntryInterface inherit RefCountedThreadSafe,joi@chromium.org2010-11-261-1/+2
| | | | | | | | | | | | | as a quick fix for bug 64501. yzshen is planning to refactor these classes significantly, so I won't make a bigger change at this point (e.g. to prevent use of the interface on different threads). BUG=64501 TEST=ThreadSanitizer complains no more. Review URL: http://codereview.chromium.org/5364003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67471 0039d316-1c4b-4281-b951-d872f2087c98
* Pass cookie options to content settings delegate.jochen@chromium.org2010-11-254-0/+6
| | | | | | | | | BUG=63650 TEST=unit tests Review URL: http://codereview.chromium.org/5261004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67394 0039d316-1c4b-4281-b951-d872f2087c98
* Implement exponential back-off mechanism.joi@chromium.org2010-11-2511-2/+1127
| | | | | | | | | | | | | | | | | | | | | | | Contributed by yzshen@google.com, original review http://codereview.chromium.org/4194001/ Implement exponential back-off mechanism. Enforce it at the URLRequestHttpJob level for all outgoing HTTP requests. The reason why to make this change is that we need back-off logic at a lower enough level to manage all outgoing HTTP traffic, so that the browser won't cause any DDoS attack. This change: 1) patches http://codereview.chromium.org/2487001/show, which is the exponential back-off implementation. 2) resolves conflicts with URLFetcher, by removing its own back-off logic: -- removes url_fetcher_protect.{h,cc}; -- integrates the sliding window mechanism of URLFetcherProtectEntry into RequestThrottlerEntry. 3) resolves conflicts with CloudPrintURLFetcher. 4) makes unit tests of CloudPrintURLFetcher, URLFetcher and URLRequest work. BUG=none TEST=pass all existing tests and also the newly-added request_throttler_unittest.cc Review URL: http://codereview.chromium.org/5276007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67375 0039d316-1c4b-4281-b951-d872f2087c98
* net: Implement DNS certificate provenance check uploads.agl@chromium.org2010-11-241-4/+2
| | | | | | | | | BUG=none TEST=none http://codereview.chromium.org/4830001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67275 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed handling of context_ in URLRequestHttpJobakalin@chromium.org2010-11-231-1/+4
| | | | | | | | | | | | | | This prevents crashes due to URLRequestHttpJobs hanging on past IOThread destruction. Fixed bugs in proxy script fetcher IOThread cleanup. BUG=chromium-os:8179,63692,63796 TEST=sync integration tests, chromeos browser tests Review URL: http://codereview.chromium.org/5306001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67076 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "net: Plumb DnsCertProvenanceChecker around.""agl@chromium.org2010-11-223-0/+9
| | | | | | (See r66623 for details.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66985 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: Plumb DnsCertProvenanceChecker around."agl@chromium.org2010-11-223-9/+0
| | | | | | This reverts commit r66970. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66974 0039d316-1c4b-4281-b951-d872f2087c98
* net: Plumb DnsCertProvenanceChecker around.agl@chromium.org2010-11-223-0/+9
| | | | | | (Reland of r66623, reverted in r66687 due to Chrome Frame linking issues.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66970 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 66722 - This prevents crashes due to URLRequestHttpJobs hanging on ↵kkania@chromium.org2010-11-191-4/+1
| | | | | | | | | | | | | | | | | | past IOThread destruction. BUG=chromium-os:8179,63692,63796 TEST=sync integration tests Review URL: http://codereview.chromium.org/5163004 For revert info, see bug 63796. TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/5144006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66813 0039d316-1c4b-4281-b951-d872f2087c98
* Make URLRequestJob RefCounted instead of RefCountedThreadSafe.willchan@chromium.org2010-11-191-5/+2
| | | | | | | | | BUG=63692 TEST=existing Review URL: http://codereview.chromium.org/5234003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66799 0039d316-1c4b-4281-b951-d872f2087c98
* Limit chrome:filebrowse access to the same directory as file://dpolukhin@chromium.org2010-11-191-3/+4
| | | | | | | | | BUG=http://code.google.com/p/chromium-os/issues/detail?id=9212 TEST=manual Review URL: http://codereview.chromium.org/5159003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66751 0039d316-1c4b-4281-b951-d872f2087c98
* This prevents crashes due to URLRequestHttpJobs hanging on past IOThreadakalin@chromium.org2010-11-191-1/+4
| | | | | | | | | | | destruction. BUG=chromium-os:8179,63692 TEST=sync integration tests Review URL: http://codereview.chromium.org/5163004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66722 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: Plumb DnsCertProvenanceChecker around."agl@chromium.org2010-11-183-9/+0
| | | | | | | This reverts commit r66623. Some how it causes libnspr4.dll to be linked in Chrome Frame builds. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66687 0039d316-1c4b-4281-b951-d872f2087c98
* net: Plumb DnsCertProvenanceChecker around.agl@chromium.org2010-11-183-0/+9
| | | | | | | | | | | | | | | | | | | | | | | DnsCertProvenanceChecker is introduced to abstract away the action of uploading reports. It's implemented by ChromeDnsCertProvenanceChecker which lives in a scoped_ptr off of a URLRequestContext. It's only active on the main context (i.e. not in incognito mode). This might change in the future, but it's a nice, conservative choice for the moment. The DnsCertProvenanceChecker is plumbed all the way to SSLClientSocket (via HttpCache) where it replaces the DnsRRResolver. Above SSLClientSocket, it's plumbed in addition to the DnsRRResolver because the later will end up going into SSLHostInfo in the future. At the moment, ChromeDnsCertProvenanceCheckerContext is just a skeleton to avoid putting too much real code in a plumbing job. BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66623 0039d316-1c4b-4281-b951-d872f2087c98
* base: Get rid of 'using' declaration of StringAppendF.tfarina@chromium.org2010-11-152-3/+3
| | | | | | | | | | | Update the callers to append base:: in the calls to StringAppendF. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4974001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66116 0039d316-1c4b-4281-b951-d872f2087c98
* Restrict file protocol on chromeos to certain whitelisted directories. ↵achuith@chromium.org2010-11-117-6/+70
| | | | | | | | | | | Disable this for tests. BUG=chromium-os:3412 TEST=Access file: directories on chromeos. browser, ui, interactive ui and unit tests should continue to pass. Review URL: http://codereview.chromium.org/4160003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65866 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on file access checks on Win.jam@chromium.org2010-11-041-0/+8
| | | | | | | | | BUG=60211 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64960 Review URL: http://codereview.chromium.org/4222005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65075 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 64960 - Turn on file access checks on Win.rafaelw@chromium.org2010-11-031-8/+0
| | | | | | | | | | BUG=60211 Review URL: http://codereview.chromium.org/4222005 TBR=jam@chromium.org Review URL: http://codereview.chromium.org/4431001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64974 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on file access checks on Win.jam@chromium.org2010-11-031-0/+8
| | | | | | | BUG=60211 Review URL: http://codereview.chromium.org/4222005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64960 0039d316-1c4b-4281-b951-d872f2087c98
* base: Move CaseInsensitiveCompare traits into the base namespace.tfarina@chromium.org2010-11-031-1/+1
| | | | | | | | | | | | | | | This should fix conflicts like: 2>d:\src\chromium_src2\src\base/string_util.h(480) : error C2904: 'CaseInsensitiveCompare' : name already used for a template in the current scope 2> d:\src\chromium_src2\src\third_party\xulrunner-sdk\win\include\xpcom\nsStringAPI.h(1406) : see declaration of 'CaseInsensitiveCompare' Reported-by: Jeff Timanus <twiz@google.com> BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4366001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64877 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 2thakis@chromium.org2010-11-021-4/+4
| | | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2826041 I then did quite a bit of manual editing to fix style issues. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4291001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64798 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 1thakis@chromium.org2010-11-014-23/+23
| | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for built-in DNS resolver/cache.agayev@chromium.org2010-10-281-2/+2
| | | | | | | | | BUG=60149 TEST=None Review URL: http://codereview.chromium.org/4216001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64271 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to test_server.py to restrict the SSL/TLS bulk encryption ↵rsleevi@chromium.org2010-10-281-3/+9
| | | | | | | | | | | algorithms via the command-line argument --ssl-alg. BUG=58831 TEST=Run test_server.py as an HTTPS server with --ssl-alg=rc4. Connect via openssl s_client -connect 127.0.0.1:1337 -cipher DEFAULT:\!RC4. Observe a connection failure. Connect with openssl s_client -connect 127.0.0.1:1337, observe that a ciphersuite that uses RC4 is negotiated. Review URL: http://codereview.chromium.org/3812007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64233 0039d316-1c4b-4281-b951-d872f2087c98