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

Unified Diff: content/shell/renderer/test_runner/WebTestProxy.cpp

Issue 146333004: Introduce an intra-priority level sorting value - Chromium Side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 9 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/shell/renderer/test_runner/WebTestProxy.h ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/WebTestProxy.cpp
diff --git a/content/shell/renderer/test_runner/WebTestProxy.cpp b/content/shell/renderer/test_runner/WebTestProxy.cpp
index b7971688dc9ac9f0c94fc9daaae2a4acefdd29ee..5c1df9ce37e362227d1d024bdb685e7517a8752f 100644
--- a/content/shell/renderer/test_runner/WebTestProxy.cpp
+++ b/content/shell/renderer/test_runner/WebTestProxy.cpp
@@ -1217,7 +1217,7 @@ void WebTestProxyBase::didReceiveResponse(WebLocalFrame*, unsigned identifier, c
}
}
-void WebTestProxyBase::didChangeResourcePriority(WebLocalFrame*, unsigned identifier, const blink::WebURLRequest::Priority& priority)
+void WebTestProxyBase::didChangeResourcePriority(WebLocalFrame*, unsigned identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_value)
{
if (m_testInterfaces->testRunner()->shouldDumpResourcePriorities()) {
if (m_resourceIdentifierMap.find(identifier) == m_resourceIdentifierMap.end())
@@ -1226,6 +1226,9 @@ void WebTestProxyBase::didChangeResourcePriority(WebLocalFrame*, unsigned identi
m_delegate->printMessage(m_resourceIdentifierMap[identifier]);
m_delegate->printMessage(" changed priority to ");
m_delegate->printMessage(PriorityDescription(priority));
+ char buffer[64];
+ snprintf(buffer, sizeof(buffer), ", intra_priority %d", intra_priority_value);
+ m_delegate->printMessage(buffer);
m_delegate->printMessage("\n");
}
}
« no previous file with comments | « content/shell/renderer/test_runner/WebTestProxy.h ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698