Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: chrome_frame/urlmon_url_request.cc

Issue 10825073: Stop using ScopedAllowIO in content::ResourceDispatcherHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chrome Frame fix Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_frame/urlmon_url_request.cc
diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc
index 61b9636d1b479da8ed30240f30dbe9f603159bd0..9b368dbdf364d8cfcd6a89e0d999b69e1d1afe61 100644
--- a/chrome_frame/urlmon_url_request.cc
+++ b/chrome_frame/urlmon_url_request.cc
@@ -691,13 +691,14 @@ STDMETHODIMP UrlmonUrlRequest::OnResponse(DWORD dwResponseCode,
headers_received_ = true;
DCHECK_NE(id(), -1);
delegate_->OnResponseStarted(id(),
- "", // mime_type
- raw_headers.c_str(), // headers
- 0, // size
- base::Time(), // last_modified
- status_.get_redirection().utf8_url,
- status_.get_redirection().http_code,
- socket_address_);
+ "", // mime_type
+ raw_headers.c_str(), // headers
+ 0, // size
+ base::Time(), // last_modified
+ status_.get_redirection().utf8_url,
+ status_.get_redirection().http_code,
+ socket_address_,
+ post_data_len());
return S_OK;
}
@@ -1298,10 +1299,11 @@ void UrlmonUrlRequestManager::StopAllRequestsHelper(
request_map_lock->Release();
}
-void UrlmonUrlRequestManager::OnResponseStarted(int request_id,
- const char* mime_type, const char* headers, int size,
+void UrlmonUrlRequestManager::OnResponseStarted(
+ int request_id, const char* mime_type, const char* headers, int size,
base::Time last_modified, const std::string& redirect_url,
- int redirect_status, const net::HostPortPair& socket_address) {
+ int redirect_status, const net::HostPortPair& socket_address,
+ uint64 upload_size) {
DCHECK_NE(request_id, -1);
DVLOG(1) << __FUNCTION__;
@@ -1314,8 +1316,9 @@ void UrlmonUrlRequestManager::OnResponseStarted(int request_id,
}
DCHECK(request != NULL);
#endif // NDEBUG
- delegate_->OnResponseStarted(request_id, mime_type, headers, size,
- last_modified, redirect_url, redirect_status, socket_address);
+ delegate_->OnResponseStarted(
+ request_id, mime_type, headers, size, last_modified, redirect_url,
+ redirect_status, socket_address, upload_size);
}
void UrlmonUrlRequestManager::OnReadComplete(int request_id,

Powered by Google App Engine
This is Rietveld 408576698