summaryrefslogtreecommitdiffstats
path: root/content/common/net
Commit message (Collapse)AuthorAgeFilesLines
* A bunch of work to transition from render_view_id to render_frame_id.jam@chromium.org2013-12-203-10/+11
| | | | | | | | | | | | | | -remove ResourceRequestInfo::GetRenderViewForRequest -reduce usage of GetAssociatedRenderView and add GetAssociatedRenderFrame which will replace it -move the cookie jar from RenderView to RenderFrame -switch most of the usages of RenderView to RenderFrame in WebPluginImpl BUG=304341 R=boliu@chromium.org, nasko@chromium.org Review URL: https://codereview.chromium.org/114573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242200 0039d316-1c4b-4281-b951-d872f2087c98
* Move a bunch of code in content\common (as well as a few left in renderer) ↵jam@chromium.org2012-10-222-0/+8
| | | | | | | | to the content namespace. Review URL: https://codereview.chromium.org/11227033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163359 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from contentajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10696166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
* roll rlz 130:132thakis@chromium.org2012-06-191-14/+0
| | | | | | | | | | | | | | | 131: Update the DEPS file so that the RLZ project can build standalone. 132: URLFetcher has moved from content to net, update references. Also remove now unnecessary code. No functionality change. BUG=118220 TEST=none Review URL: https://chromiumcodereview.appspot.com/10577015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142985 0039d316-1c4b-4281-b951-d872f2087c98
* Move content::URLFetcher static functions to net::URLFetcherakalin@chromium.org2012-06-191-26/+10
| | | | | | | | | | | | | | | | | Remove content::URLFetcher. Update all references. Add explicit dependency on content_common from browser, since template_url_fetcher.cc calls AssociateURLFetcherWithRenderView (there are probably other direct uses of content_common). BUG=118220 TEST= TBR=satorux@chromium.org,mnissler@chromium.org,mal@chromium.org,jhawkins@chromium.org,sky@chromium.org,rlp@chromium.org Review URL: https://chromiumcodereview.appspot.com/10554008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142926 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLFetcherImpl to net/akalin@chromium.org2012-06-154-1570/+64
| | | | | | | | | | | | | | Add some TODOs for follow-up tasks. Leave URLFetcher::Create in content, but move it to url_fetcher.cc. BUG=118220 TEST= Review URL: https://chromiumcodereview.appspot.com/10534154 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142355 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLFetcherCore to net/akalin@chromium.org2012-06-134-1430/+7
| | | | | | | | | | BUG=118220 TEST= TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/10543129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141853 0039d316-1c4b-4281-b951-d872f2087c98
* Add support to URLFetcher for stopping on redirects. Use this in ↵pkasting@chromium.org2012-06-075-32/+122
| | | | | | | | | | | | AlternateNavURLFetcher in hopes of faster and more reliable detection of intranet sites. Note that this does increase the risk that we'll start showing infobars all the time for users with ISPs that redirect bogus addresses to search landing pages. In particular, if such ISPs use multi-stage redirects, rather than redirecting "bad" URLs directly, we'll start showing infobars where we wouldn't before. I consider this a fairly low risk. BUG=105312 TEST=On a new profile on the corp network, type in a valid "go/xxx" address (without scheme) and hit enter on the default choice (to search for the string). Verify you get an infobar offering to navigate. Review URL: https://chromiumcodereview.appspot.com/10543017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140964 0039d316-1c4b-4281-b951-d872f2087c98
* Reorder definitions to match declarations for url_fetcher_core.*.pkasting@chromium.org2012-06-061-214/+224
| | | | | | | | | BUG=none TEST=none TBR=eroman Review URL: https://chromiumcodereview.appspot.com/10534028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140884 0039d316-1c4b-4281-b951-d872f2087c98
* Add sanity-CHECK that UrlFetcherCore is passed a valid URLwez@chromium.org2012-05-251-0/+1
| | | | | | | | | BUG=129449 Review URL: https://chromiumcodereview.appspot.com/10431007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139150 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLFetcherFactory from content to netakalin@chromium.org2012-05-252-7/+10
| | | | | | | | | | BUG=118220 TEST= TBR=jam@chromium.org,jhawkins@chromium.org,mnissler@chromium.org Review URL: https://chromiumcodereview.appspot.com/10438002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138956 0039d316-1c4b-4281-b951-d872f2087c98
* Change most content::URLFetcher references to net::URLFetcherakalin@chromium.org2012-05-235-33/+35
| | | | | | | | | | | | | | | | The only remaining use of content::URLFetcher is content::URLFetcher::Create. Make content::URLFetcher not inherit from net::URLFetcher. Also make code that directly create URLFetcherImpl instead call content::URLFetcher::Create. BUG=118220 TEST= TBR=mnissler@chromium.org,sky@chromium.org,mal@chromium.org,sail@chromium.org Review URL: https://chromiumcodereview.appspot.com/10412050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138443 0039d316-1c4b-4281-b951-d872f2087c98
* Remove content::URLFetcherDelegateakalin@chromium.org2012-05-225-28/+27
| | | | | | | | | | | | | | | | | Change all references to net::URLFetcherDelegate. Change some instances of content::URLFetcher to net::URLFetcher as needed. Remove unused files auth_response_handler.*. BUG=118220 TEST= TBR=sky@chromium.org,joi@chromium.org,mnissler@chromium.org,rlp@chromium.org Review URL: https://chromiumcodereview.appspot.com/10392192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138384 0039d316-1c4b-4281-b951-d872f2087c98
* Make AssociateWithRenderView() a free function in the 'content' namespaceakalin@chromium.org2012-05-224-32/+46
| | | | | | | | | | | | | | | Rename it to AssociateURLFetcherWithRenderView(). This will enable us to remove content::URLFetcher completely and use net::URLFetcher exclusively. BUG=118220 TEST= TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10383271 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138178 0039d316-1c4b-4281-b951-d872f2087c98
* Add the StackTrace to the URLFetcher crash dumps.willchan@chromium.org2012-05-122-0/+5
| | | | | | | | | | | | This will help me in narrowing down which URLFetcher is leaking the URLRequest in these crashes. BUG= 90971,127860 TBR=eroman TEST=none Review URL: https://chromiumcodereview.appspot.com/10383145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136736 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/akalin@chromium.org2012-05-111-28/+28
| | | | | | | | | | | | | | | | | | | | | Temporarily make a shim content::URLFetcherDelegate class. A future CL will replace all instances of content::URLFetcherDelegate with net::URLFetcherDelegate and remove that class. Move most URLFetcher methods to net::URLFetcher, except for the static methods (which will be handled in a future CL) and AssociateWithRenderView, which is content-specific. Replace all instances of content::URLFetcher* in the URLFetcherDelegate callbacks with net::URLFetcher* (except for rlz, which required its own special hack). BUG=118220 TEST= TBR=mnissler@chromium.org,jhawkins@chromium.org,cpu@chromium.org,estade@chromium.org,sky@chromium.org,joth@chromium.org,satish@chromium.org Review URL: https://chromiumcodereview.appspot.com/10386063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136514 0039d316-1c4b-4281-b951-d872f2087c98
* Stop refcounting URLRequestContext.willchan@chromium.org2012-05-111-7/+7
| | | | | | | | | | | | While doing so, fix a few issues with the code like ordering of URLRequestContext to ensure correct destruction order. Also fix const correctness in some places. BUG=58859 TEST=none TBR=willchan Review URL: https://chromiumcodereview.appspot.com/10299002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136497 0039d316-1c4b-4281-b951-d872f2087c98
* Make URLRequestThrottlerManager a member of URLRequestContext.joi@chromium.org2012-05-023-97/+163
| | | | | | | | | | | | | | This addresses a long-standing TODO and allows us to simplify the logic in the class a bit as it now lives fully on the IO thread. It should also allow further cleanup in follow-up changes e.g. to stop using scoped_refptr for the URLRequestThrottlerEntry instances. BUG=119760 Review URL: http://codereview.chromium.org/10203002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134963 0039d316-1c4b-4281-b951-d872f2087c98
* add methods to URLFetcherDelegate to get download data from URLFetcherCore:kuan@chromium.org2012-04-272-0/+24
| | | | | | | | | | | | | 1) OnUrlFetchDownloadData to get current download buffer. 2) ShouldSendDownloadData to indicate if OnUrlFetchDownloadData should be called. BUG=chromium-os:29905 TEST=nothing yet. Review URL: http://codereview.chromium.org/10227007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134207 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed a bug in URLFetcherCore that caused random failures if stopped ↵primiano@chromium.org2012-04-251-0/+5
| | | | | | | | | | | (because the URLFetcherImpl was destroyed) during a chunked upload. BUG=124390 TEST=none Review URL: http://codereview.chromium.org/10175006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133881 0039d316-1c4b-4281-b951-d872f2087c98
* Valgrind: Fix uninitialized variable from r133076.thestig@chromium.org2012-04-191-0/+1
| | | | | | | | BUG=none TEST=Valgrind bots gets greener. Review URL: https://chromiumcodereview.appspot.com/10140005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133088 0039d316-1c4b-4281-b951-d872f2087c98
* Remove references to renderer from URLFetcherCoreakalin@chromium.org2012-04-193-30/+49
| | | | | | | | | | | | | | | Replace AssociateWithRenderView() with SetFirstPartyForCookies() and SetPersistentURLRequestUserData(). This will make it possible to move URLFetcherCore to net/. BUG=118220 TEST= Review URL: http://codereview.chromium.org/10025032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133076 0039d316-1c4b-4281-b951-d872f2087c98
* URLFetcher: Skip posting to IO thread if already on IO thread.willchan@chromium.org2012-04-171-1/+5
| | | | | | | | | | BUG=123224 TEST=none Review URL: http://codereview.chromium.org/10105018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132539 0039d316-1c4b-4281-b951-d872f2087c98
* All classes that directly derive from net::URLRequestContextGetter should ↵rsleevi@chromium.org2012-04-061-2/+3
| | | | | | | | | | | | | | | | | | have "protected" virtual destructors, not "public". By having a public destructor, it becomes possible to stack allocate the derived class. Stack allocating a RCTS is a dangerous behaviour, since there may still be a caller who holds a reference when the object goes out of scope. BUG=none TEST=none Review URL: http://codereview.chromium.org/9958145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131072 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLFetcherImpl::Core into its own class and fileakalin@chromium.org2012-04-024-1148/+1356
| | | | | | | | | | | | | | | | | This is the first step of moving URLFetcher to net. This turns URLFetcherImpl into a wrapper around URLFetcherCore. Remove some unused functions. Make URLFetcher::GetExtraRequestHeaders() const. BUG=118220 TEST= Review URL: http://codereview.chromium.org/9838031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130119 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129018 - Revert 128993 - Refactor BaseTimer to avoid spamming the ↵jbates@chromium.org2012-03-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageLoop with orphaned tasks. This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/9791009 TBR=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/9860014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129062 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128993 - Refactor BaseTimer to avoid spamming the MessageLoop with ↵aa@chromium.org2012-03-261-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | orphaned tasks. This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/9791009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129018 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BaseTimer to avoid spamming the MessageLoop with orphaned tasks.jbates@chromium.org2012-03-261-3/+5
| | | | | | | | | | | | | | | | | | | | This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128993 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Refactor BaseTimer to avoid spamming the MessageLoop with orphaned ↵rnk@chromium.org2012-03-231-5/+3
| | | | | | | | | | | | | | tasks." This reverts commit r128412, which is causing DCHECKs in thread destruction in media unittests. BUG=119714,119750 TBR=sky@chromium.org,petermayo@chromium.org Review URL: https://chromiumcodereview.appspot.com/9839059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128506 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BaseTimer to avoid spamming the MessageLoop with orphaned tasks.jbates@chromium.org2012-03-231-3/+5
| | | | | | | | | | | | | | | | This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667 Review URL: http://codereview.chromium.org/9655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128412 0039d316-1c4b-4281-b951-d872f2087c98
* Expose upload progress from URLFetcher.kinaba@chromium.org2012-03-152-2/+103
| | | | | | | | | | | | | | | | | | | | Uploading counterpart of http://crrev.com/124146. Provide a method for the users of URLFetcher to obtain upload progress. Different from the download case, even the internals of URLFetcher (= URLRequest) doesn't provide callback mechanism for upload progress. So the current implementation runs a timer and poll the progress status. BUG=chromium-os:27370 TEST=content_unittests --gtest_filter='*URLFetcher*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126589 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=126611 (XP test bots hung at URLFetcher test) Review URL: https://chromiumcodereview.appspot.com/9618051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126850 0039d316-1c4b-4281-b951-d872f2087c98
* net: always enable NSS's HTTP fetchesagl@chromium.org2012-03-141-2/+2
| | | | | | | | | | | | | | | By tying them to revocation checking and disabling revocation checking by default, I broke AIA chasing on Linux. This change also renames the public functions in nss_ocsp.cc to better reflect that HTTP fetching is used for more than just OCSP. BUG=117832 TEST=none (yet) Review URL: https://chromiumcodereview.appspot.com/9693004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126637 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 126589 - Expose upload progress from URLFetcher.kinaba@chromium.org2012-03-142-95/+2
| | | | | | | | | | | | | | | | | | | | Uploading counterpart of http://crrev.com/124146. Provide a method for the users of URLFetcher to obtain upload progress. Different from the download case, even the internals of URLFetcher (= URLRequest) doesn't provide callback mechanism for upload progress. So the current implementation runs a timer and poll the progress status. BUG=chromium-os:27370 TEST=content_unittests --gtest_filter='*URLFetcher*' Review URL: http://codereview.chromium.org/9618051 TBR=kinaba@chromium.org Review URL: https://chromiumcodereview.appspot.com/9703016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126611 0039d316-1c4b-4281-b951-d872f2087c98
* Expose upload progress from URLFetcher.kinaba@chromium.org2012-03-142-2/+95
| | | | | | | | | | | | | | | | | Uploading counterpart of http://crrev.com/124146. Provide a method for the users of URLFetcher to obtain upload progress. Different from the download case, even the internals of URLFetcher (= URLRequest) doesn't provide callback mechanism for upload progress. So the current implementation runs a timer and poll the progress status. BUG=chromium-os:27370 TEST=content_unittests --gtest_filter='*URLFetcher*' Review URL: http://codereview.chromium.org/9618051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126589 0039d316-1c4b-4281-b951-d872f2087c98
* Make test server to talk with the python test server which is running on ↵jnd@chromium.org2012-03-121-0/+3
| | | | | | | | | | | | | | | | | remote machine. For Chromium/Android platform, since there is no python env support on Android device, we have to run the test server on the remote host and let the test server to talk with it. Also add the net_util.h into some test files to fix compilation error. They used to implicitly rely on the net_util.h definition by including test_server.h, but the net_util.h is removed from test_server.h in this patch. Since the fix in those test files are trivial, Ryan and Paweł are OK with the patch, just TBR to the owners to skip the owner presubmit check for landing. TBR=owners BUG=None TEST=net_unittests should pass on all platforms Review URL: http://codereview.chromium.org/9359051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126100 0039d316-1c4b-4281-b951-d872f2087c98
* Add URLFetcher::SaveResponseToFileAtPathhashimoto@chromium.org2012-03-093-61/+273
| | | | | | | | | | BUG=chromium-os:26971 TEST=content_unittests --gtest_filter="URLFetcher*" Review URL: http://codereview.chromium.org/9585009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125937 0039d316-1c4b-4281-b951-d872f2087c98
* Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate.jochen@chromium.org2012-03-095-11/+85
| | | | | | | | | | | As a side effect, requests going through URLFetcher now also have to pass cookie checks. Requests from the URLFetcher can be optionally annotated with a render view, so the user can be notified about blocked cookies. This plumbing is done for the alternate nav url fetcher, and the template url fetcher. BUG=116322 TEST=manual/pyauto Review URL: https://chromiumcodereview.appspot.com/9572001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125831 0039d316-1c4b-4281-b951-d872f2087c98
* Order content::URLFetcher test code correctlyhashimoto@chromium.org2012-03-031-102/+109
| | | | | | | | | | | | | Sort all code in 'class declarations' -> 'method definitions' -> 'test code' order. Add missing OVERRIDEs BUG=None TEST=content_unittests --gtest_filter="URLFetcher*" Review URL: http://codereview.chromium.org/9582002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124849 0039d316-1c4b-4281-b951-d872f2087c98
* Rename URLFetcherImpl::Core::TempFileWriter to FileWriterhashimoto@chromium.org2012-03-032-108/+98
| | | | | | | | | | | | | URLFetcher is going to have a new method 'SaveResponseToFile'. FileWriter is going to manage both temporary and ordinary files. BUG=chromium-os:26971 TEST=content_unittests --gtest_filter="URLFetcher*" Review URL: http://codereview.chromium.org/9580003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124846 0039d316-1c4b-4281-b951-d872f2087c98
* Move TestURLRequestContextGetter to url_request_test_util.{h,cc}akalin@chromium.org2012-03-021-24/+0
| | | | | | | | | | | Make everything use this instead of rolling their own. BUG=113723 TEST= Review URL: https://chromiumcodereview.appspot.com/9562037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124758 0039d316-1c4b-4281-b951-d872f2087c98
* Add download progress notification to URLFetcher.kinaba@chromium.org2012-02-292-4/+139
| | | | | | | | | | | | | | | A part of file managing code in ChromeOS (chrome/browser/chromeos/gdata/) is going to need progress reporting UI during its http request. This patch adds a new callback function to URLFetcherDelegate for notifying the progress. What it does it to simply wire from URLRequest::Delegate::OnReadCompleted. BUG=chromium-os:25977 TEST=content_unittests --gtest_filter='*URLFetcher*' Review URL: http://codereview.chromium.org/9429036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124146 0039d316-1c4b-4281-b951-d872f2087c98
* Remove usage of a deprecated TestServer constructor.erikwright@chromium.org2012-02-241-16/+46
| | | | | | | | | | | | | | | | | | Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details: http://codereview.chromium.org/9369029/ A follow-up CL will remove the deprecated constructor: http://codereview.chromium.org/9431002/ BUG=114369 TEST=everything still compiles and passes Review URL: http://codereview.chromium.org/9430050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123486 0039d316-1c4b-4281-b951-d872f2087c98
* content::URLFetcher: Add HTTP PUT request type and method to append header ↵kuan@chromium.org2012-02-072-2/+8
| | | | | | | | | | | | | string. PUT request is needed for uploading files to gdata. BUG=chromium-os:25357 TEST=nothing yet. Review URL: http://codereview.chromium.org/9342007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120731 0039d316-1c4b-4281-b951-d872f2087c98
* URLFetcherTempFileTest should not be flaky after 120507.sergeyu@chromium.org2012-02-051-8/+2
| | | | | | | | | | | | | | | | | | Revert 120511 - Mark URLFetcherTempFileTest.LargeGet FLAKY_ on ChromeOS to stop halting the tree when Linux ChromeOS fails this test with a DCHECK() failure (see bug for crash output). TBR=willchan,skerner R=thakis BUG=112740 NOTRY=true Review URL: http://codereview.chromium.org/9309106 TBR=dbeam@chromium.org Review URL: https://chromiumcodereview.appspot.com/9310115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120527 0039d316-1c4b-4281-b951-d872f2087c98
* Mark URLFetcherTempFileTest.LargeGet FLAKY_ on ChromeOS to stop halting the treedbeam@chromium.org2012-02-051-2/+8
| | | | | | | | | | | | | | when Linux ChromeOS fails this test with a DCHECK() failure (see bug for crash output). TBR=willchan,skerner R=thakis BUG=112740 NOTRY=true Review URL: http://codereview.chromium.org/9309106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120511 0039d316-1c4b-4281-b951-d872f2087c98
* Enable SmallGet. The test that caused original failure has been disabled in ↵sergeyu@chromium.org2012-02-051-2/+2
| | | | | | | | | | | | | | | | | 120507. Revert 120227 - Disable URLFetcherTempFileTest.SmallGet BUG=112482 TEST=tree is greener! TBR=saintlou@chromium.org Review URL: https://chromiumcodereview.appspot.com/9323010 TBR=tim@chromium.org Review URL: https://chromiumcodereview.appspot.com/9328029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120509 0039d316-1c4b-4281-b951-d872f2087c98
* Disable URLFetcherTempFileTest.SmallGettim@chromium.org2012-02-021-2/+2
| | | | | | | | | | BUG=112482 TEST=tree is greener! TBR=saintlou@chromium.org Review URL: https://chromiumcodereview.appspot.com/9323010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120227 0039d316-1c4b-4281-b951-d872f2087c98
* Convert use of int ms to TimeDelta in files owned by eroman.tedvessenes@gmail.com2012-01-281-1/+2
| | | | | | | | | | | R=eroman@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9107025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119537 0039d316-1c4b-4281-b951-d872f2087c98
* [Coverity] Fixed call by value to by referencegroby@chromium.org2012-01-121-3/+3
| | | | | | | | | | | | CID=102901 BUG=none TEST=none Review URL: http://codereview.chromium.org/9148018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117360 0039d316-1c4b-4281-b951-d872f2087c98
* Added HTTP DELETE request type to content:URLFetcher.zelidrag@chromium.org2011-12-131-0/+4
| | | | | | | | BUG=chromium-os:24126 TEST=none Review URL: http://codereview.chromium.org/8898016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114295 0039d316-1c4b-4281-b951-d872f2087c98