| Index: chrome/common/resource_dispatcher.cc
|
| ===================================================================
|
| --- chrome/common/resource_dispatcher.cc (revision 17048)
|
| +++ chrome/common/resource_dispatcher.cc (working copy)
|
| @@ -294,29 +294,6 @@
|
| return true;
|
| }
|
|
|
| -void ResourceDispatcher::OnDownloadProgress(
|
| - const IPC::Message& message, int request_id, int64 position, int64 size) {
|
| - PendingRequestList::iterator it = pending_requests_.find(request_id);
|
| - if (it == pending_requests_.end()) {
|
| - DLOG(WARNING) << "Got download progress for a nonexistant or "
|
| - " finished requests";
|
| - return;
|
| - }
|
| -
|
| - PendingRequestInfo& request_info = it->second;
|
| -
|
| - RESOURCE_LOG("Dispatching download progress for " <<
|
| - request_info.peer->GetURLForDebugging());
|
| - request_info.peer->OnDownloadProgress(position, size);
|
| -
|
| - // Send the ACK message back.
|
| - IPC::Message::Sender* sender = message_sender();
|
| - if (sender) {
|
| - sender->Send(
|
| - new ViewHostMsg_DownloadProgress_ACK(message.routing_id(), request_id));
|
| - }
|
| -}
|
| -
|
| void ResourceDispatcher::OnUploadProgress(
|
| const IPC::Message& message, int request_id, int64 position, int64 size) {
|
| PendingRequestList::iterator it = pending_requests_.find(request_id);
|
| @@ -504,7 +481,6 @@
|
| void ResourceDispatcher::DispatchMessage(const IPC::Message& message) {
|
| IPC_BEGIN_MESSAGE_MAP(ResourceDispatcher, message)
|
| IPC_MESSAGE_HANDLER(ViewMsg_Resource_UploadProgress, OnUploadProgress)
|
| - IPC_MESSAGE_HANDLER(ViewMsg_Resource_DownloadProgress, OnDownloadProgress)
|
| IPC_MESSAGE_HANDLER(ViewMsg_Resource_ReceivedResponse, OnReceivedResponse)
|
| IPC_MESSAGE_HANDLER(ViewMsg_Resource_ReceivedRedirect, OnReceivedRedirect)
|
| IPC_MESSAGE_HANDLER(ViewMsg_Resource_DataReceived, OnReceivedData)
|
| @@ -559,7 +535,6 @@
|
| bool ResourceDispatcher::IsResourceDispatcherMessage(
|
| const IPC::Message& message) {
|
| switch (message.type()) {
|
| - case ViewMsg_Resource_DownloadProgress::ID:
|
| case ViewMsg_Resource_UploadProgress::ID:
|
| case ViewMsg_Resource_ReceivedResponse::ID:
|
| case ViewMsg_Resource_ReceivedRedirect::ID:
|
|
|