From 89c7ed00c4d37c0b917d4a681d94d6a4ce782c33 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Thu, 12 Mar 2009 19:54:57 +0000 Subject: WebKit resource requests now have a flag reportUploadProgress that tells us whether we should turn on the reporting of upload progress updates. This CL adds plumbing in the SimpleResourceLoader for reporting upload progress updates, as is already done in ResourceDispatcherHost. This makes 3 layout tests (XMLHttpRequest related) pass. BUG=None TEST=Run the layout tests. Review URL: http://codereview.chromium.org/28341 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11567 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/resource_dispatcher_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/common/resource_dispatcher_unittest.cc') diff --git a/chrome/common/resource_dispatcher_unittest.cc b/chrome/common/resource_dispatcher_unittest.cc index 0370bde..a3eea69 100644 --- a/chrome/common/resource_dispatcher_unittest.cc +++ b/chrome/common/resource_dispatcher_unittest.cc @@ -44,6 +44,9 @@ class TestRequestCallback : public ResourceLoaderBridge::Peer { data_.append(data, len); } + virtual void OnUploadProgress(uint64 position, uint64 size) { + } + virtual void OnCompletedRequest(const URLRequestStatus& status, const std::string& security_info) { EXPECT_FALSE(complete_); -- cgit v1.1