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

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: rebase 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 b2ed8c7bc34c68d178fccd5c569a330ffd0559ce..bf441b37d6cd25b2d3102b819b2c4e86976d55fd 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;
}
@@ -1323,10 +1324,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__;
@@ -1339,8 +1341,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