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

Unified Diff: content/child/resource_dispatcher.cc

Issue 132143003: [abort] Let webkit know we're past the phase where throttles run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 3da70c331b6dd391c79474f018086bc7ac75bbbd..04d64ab7c2af5dfabc8b9c6fe501bd7a8954fe28 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -552,6 +552,13 @@ void ResourceDispatcher::OnRequestComplete(
renderer_completion_time);
}
+void ResourceDispatcher::OnRequestDidStartForFrame(int request_id) {
+ PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
+ if (!request_info)
+ return;
+ request_info->peer->OnStartedRequestForFrame();
+}
+
int ResourceDispatcher::AddPendingRequest(
ResourceLoaderBridge::Peer* callback,
ResourceType::Type resource_type,
@@ -655,6 +662,8 @@ void ResourceDispatcher::DispatchMessage(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ResourceMsg_DataReceived, OnReceivedData)
IPC_MESSAGE_HANDLER(ResourceMsg_DataDownloaded, OnDownloadedData)
IPC_MESSAGE_HANDLER(ResourceMsg_RequestComplete, OnRequestComplete)
+ IPC_MESSAGE_HANDLER(ResourceMsg_RequestDidStartForFrame,
+ OnRequestDidStartForFrame)
IPC_END_MESSAGE_MAP()
}
@@ -764,6 +773,7 @@ bool ResourceDispatcher::IsResourceDispatcherMessage(
case ResourceMsg_DataReceived::ID:
case ResourceMsg_DataDownloaded::ID:
case ResourceMsg_RequestComplete::ID:
+ case ResourceMsg_RequestDidStartForFrame::ID:
return true;
default:
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698