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

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: Changes from review. Created 6 years, 10 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: 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 70bb6b7c95a3cb49db04dc7d3f48f33985064b17..e7461be0d885c0a2a7efdeeb16d6431a1783063a 100644
--- a/content/shell/renderer/test_runner/WebTestProxy.cpp
+++ b/content/shell/renderer/test_runner/WebTestProxy.cpp
@@ -1214,7 +1214,7 @@ void WebTestProxyBase::didReceiveResponse(WebFrame*, unsigned identifier, const
}
}
-void WebTestProxyBase::didChangeResourcePriority(WebFrame*, unsigned identifier, const blink::WebURLRequest::Priority& priority)
+void WebTestProxyBase::didChangeResourcePriority(WebFrame*, unsigned identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_value)
{
if (m_testInterfaces->testRunner()->shouldDumpResourcePriorities()) {
if (m_resourceIdentifierMap.find(identifier) == m_resourceIdentifierMap.end())
@@ -1223,6 +1223,9 @@ void WebTestProxyBase::didChangeResourcePriority(WebFrame*, unsigned identifier,
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");
}
}

Powered by Google App Engine
This is Rietveld 408576698