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

Side by Side Diff: Source/testing/runner/WebTestProxy.cpp

Issue 22159002: Add 'didDispatchPingLoader' callback to FrameLoaderClient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/testing/runner/TestRunner.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 m_delegate->printMessage(" - didChangeLocationWithinPageForFrame\n"); 1265 m_delegate->printMessage(" - didChangeLocationWithinPageForFrame\n");
1266 } 1266 }
1267 } 1267 }
1268 1268
1269 void WebTestProxyBase::didDetectXSS(WebFrame*, const WebURL&, bool) 1269 void WebTestProxyBase::didDetectXSS(WebFrame*, const WebURL&, bool)
1270 { 1270 {
1271 if (m_testInterfaces->testRunner()->shouldDumpFrameLoadCallbacks()) 1271 if (m_testInterfaces->testRunner()->shouldDumpFrameLoadCallbacks())
1272 m_delegate->printMessage("didDetectXSS\n"); 1272 m_delegate->printMessage("didDetectXSS\n");
1273 } 1273 }
1274 1274
1275 void WebTestProxyBase::didDispatchPingLoader(WebFrame*, const WebURL& url)
1276 {
1277 if (m_testInterfaces->testRunner()->shouldDumpPingLoaderCallbacks())
1278 m_delegate->printMessage(string("PingLoader dispatched to '") + URLDescr iption(url).c_str() + "'.\n");
1279 }
1280
1275 void WebTestProxyBase::willRequestResource(WebFrame* frame, const WebKit::WebCac hedURLRequest& request) 1281 void WebTestProxyBase::willRequestResource(WebFrame* frame, const WebKit::WebCac hedURLRequest& request)
1276 { 1282 {
1277 if (m_testInterfaces->testRunner()->shouldDumpResourceRequestCallbacks()) { 1283 if (m_testInterfaces->testRunner()->shouldDumpResourceRequestCallbacks()) {
1278 printFrameDescription(m_delegate, frame); 1284 printFrameDescription(m_delegate, frame);
1279 m_delegate->printMessage(string(" - ") + request.initiatorName().utf8(). data()); 1285 m_delegate->printMessage(string(" - ") + request.initiatorName().utf8(). data());
1280 m_delegate->printMessage(string(" requested '") + URLDescription(request .urlRequest().url()).c_str() + "'\n"); 1286 m_delegate->printMessage(string(" requested '") + URLDescription(request .urlRequest().url()).c_str() + "'\n");
1281 } 1287 }
1282 } 1288 }
1283 1289
1284 void WebTestProxyBase::didCreateDataSource(WebFrame*, WebDataSource* ds) 1290 void WebTestProxyBase::didCreateDataSource(WebFrame*, WebDataSource* ds)
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 1480
1475 void WebTestProxyBase::resetInputMethod() 1481 void WebTestProxyBase::resetInputMethod()
1476 { 1482 {
1477 // If a composition text exists, then we need to let the browser process 1483 // If a composition text exists, then we need to let the browser process
1478 // to cancel the input method's ongoing composition session. 1484 // to cancel the input method's ongoing composition session.
1479 if (m_webWidget) 1485 if (m_webWidget)
1480 m_webWidget->confirmComposition(); 1486 m_webWidget->confirmComposition();
1481 } 1487 }
1482 1488
1483 } 1489 }
OLDNEW
« no previous file with comments | « Source/testing/runner/TestRunner.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698