OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/test_runner/web_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
6 | 6 |
7 #include <cctype> | 7 #include <cctype> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 } | 1152 } |
1153 | 1153 |
1154 void WebTestProxyBase::DidFinishLoad(blink::WebLocalFrame* frame) { | 1154 void WebTestProxyBase::DidFinishLoad(blink::WebLocalFrame* frame) { |
1155 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) { | 1155 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) { |
1156 PrintFrameDescription(delegate_, frame); | 1156 PrintFrameDescription(delegate_, frame); |
1157 delegate_->PrintMessage(" - didFinishLoadForFrame\n"); | 1157 delegate_->PrintMessage(" - didFinishLoadForFrame\n"); |
1158 } | 1158 } |
1159 CheckDone(frame, LoadFinished); | 1159 CheckDone(frame, LoadFinished); |
1160 } | 1160 } |
1161 | 1161 |
1162 void WebTestProxyBase::DidDetectXSS(blink::WebLocalFrame* frame, | 1162 void WebTestProxyBase::DidDetectXSS(const blink::WebURL& insecure_url, |
1163 const blink::WebURL& insecure_url, | |
1164 bool did_block_entire_page) { | 1163 bool did_block_entire_page) { |
1165 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) | 1164 if (test_interfaces_->GetTestRunner()->shouldDumpFrameLoadCallbacks()) |
1166 delegate_->PrintMessage("didDetectXSS\n"); | 1165 delegate_->PrintMessage("didDetectXSS\n"); |
1167 } | 1166 } |
1168 | 1167 |
1169 void WebTestProxyBase::DidDispatchPingLoader(blink::WebLocalFrame* frame, | 1168 void WebTestProxyBase::DidDispatchPingLoader(blink::WebLocalFrame* frame, |
1170 const blink::WebURL& url) { | 1169 const blink::WebURL& url) { |
1171 if (test_interfaces_->GetTestRunner()->shouldDumpPingLoaderCallbacks()) | 1170 if (test_interfaces_->GetTestRunner()->shouldDumpPingLoaderCallbacks()) |
1172 delegate_->PrintMessage(std::string("PingLoader dispatched to '") + | 1171 delegate_->PrintMessage(std::string("PingLoader dispatched to '") + |
1173 URLDescription(url).c_str() + "'.\n"); | 1172 URLDescription(url).c_str() + "'.\n"); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 // to cancel the input method's ongoing composition session. | 1416 // to cancel the input method's ongoing composition session. |
1418 if (web_widget_) | 1417 if (web_widget_) |
1419 web_widget_->confirmComposition(); | 1418 web_widget_->confirmComposition(); |
1420 } | 1419 } |
1421 | 1420 |
1422 blink::WebString WebTestProxyBase::acceptLanguages() { | 1421 blink::WebString WebTestProxyBase::acceptLanguages() { |
1423 return blink::WebString::fromUTF8(accept_languages_); | 1422 return blink::WebString::fromUTF8(accept_languages_); |
1424 } | 1423 } |
1425 | 1424 |
1426 } // namespace test_runner | 1425 } // namespace test_runner |
OLD | NEW |