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

Side by Side Diff: content/shell/renderer/test_runner/WebTestProxy.cpp

Issue 220553002: Revert of Introduce an intra-priority level sorting value - Chromium Side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/test_runner/WebTestProxy.h" 5 #include "content/shell/renderer/test_runner/WebTestProxy.h"
6 6
7 #include <cctype> 7 #include <cctype>
8 8
9 #include "content/shell/renderer/test_runner/event_sender.h" 9 #include "content/shell/renderer/test_runner/event_sender.h"
10 #include "content/shell/renderer/test_runner/MockColorChooser.h" 10 #include "content/shell/renderer/test_runner/MockColorChooser.h"
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 GURL url = response.url(); 1215 GURL url = response.url();
1216 WebString mimeType = response.mimeType(); 1216 WebString mimeType = response.mimeType();
1217 m_delegate->printMessage(url.ExtractFileName()); 1217 m_delegate->printMessage(url.ExtractFileName());
1218 m_delegate->printMessage(" has MIME type "); 1218 m_delegate->printMessage(" has MIME type ");
1219 // Simulate NSURLResponse's mapping of empty/unknown MIME types to appli cation/octet-stream 1219 // Simulate NSURLResponse's mapping of empty/unknown MIME types to appli cation/octet-stream
1220 m_delegate->printMessage(mimeType.isEmpty() ? "application/octet-stream" : mimeType.utf8().data()); 1220 m_delegate->printMessage(mimeType.isEmpty() ? "application/octet-stream" : mimeType.utf8().data());
1221 m_delegate->printMessage("\n"); 1221 m_delegate->printMessage("\n");
1222 } 1222 }
1223 } 1223 }
1224 1224
1225 void WebTestProxyBase::didChangeResourcePriority(WebFrame*, unsigned identifier, const blink::WebURLRequest::Priority& priority, int intra_priority_value) 1225 void WebTestProxyBase::didChangeResourcePriority(WebFrame*, unsigned identifier, const blink::WebURLRequest::Priority& priority)
1226 { 1226 {
1227 if (m_testInterfaces->testRunner()->shouldDumpResourcePriorities()) { 1227 if (m_testInterfaces->testRunner()->shouldDumpResourcePriorities()) {
1228 if (m_resourceIdentifierMap.find(identifier) == m_resourceIdentifierMap. end()) 1228 if (m_resourceIdentifierMap.find(identifier) == m_resourceIdentifierMap. end())
1229 m_delegate->printMessage("<unknown>"); 1229 m_delegate->printMessage("<unknown>");
1230 else 1230 else
1231 m_delegate->printMessage(m_resourceIdentifierMap[identifier]); 1231 m_delegate->printMessage(m_resourceIdentifierMap[identifier]);
1232 m_delegate->printMessage(" changed priority to "); 1232 m_delegate->printMessage(" changed priority to ");
1233 m_delegate->printMessage(PriorityDescription(priority)); 1233 m_delegate->printMessage(PriorityDescription(priority));
1234 char buffer[64];
1235 snprintf(buffer, sizeof(buffer), ", intra_priority %d", intra_priority_v alue);
1236 m_delegate->printMessage(buffer);
1237 m_delegate->printMessage("\n"); 1234 m_delegate->printMessage("\n");
1238 } 1235 }
1239 } 1236 }
1240 1237
1241 void WebTestProxyBase::didFinishResourceLoad(WebFrame*, unsigned identifier) 1238 void WebTestProxyBase::didFinishResourceLoad(WebFrame*, unsigned identifier)
1242 { 1239 {
1243 if (m_testInterfaces->testRunner()->shouldDumpResourceLoadCallbacks()) { 1240 if (m_testInterfaces->testRunner()->shouldDumpResourceLoadCallbacks()) {
1244 if (m_resourceIdentifierMap.find(identifier) == m_resourceIdentifierMap. end()) 1241 if (m_resourceIdentifierMap.find(identifier) == m_resourceIdentifierMap. end())
1245 m_delegate->printMessage("<unknown>"); 1242 m_delegate->printMessage("<unknown>");
1246 else 1243 else
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 1355
1359 void WebTestProxyBase::resetInputMethod() 1356 void WebTestProxyBase::resetInputMethod()
1360 { 1357 {
1361 // If a composition text exists, then we need to let the browser process 1358 // If a composition text exists, then we need to let the browser process
1362 // to cancel the input method's ongoing composition session. 1359 // to cancel the input method's ongoing composition session.
1363 if (m_webWidget) 1360 if (m_webWidget)
1364 m_webWidget->confirmComposition(); 1361 m_webWidget->confirmComposition();
1365 } 1362 }
1366 1363
1367 } 1364 }
OLDNEW
« 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