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

Side by Side Diff: components/test_runner/web_test_proxy.cc

Issue 1360223002: Remove some redundant frame parameters from WebFrameClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | content/renderer/render_frame_impl.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 // 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
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
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
OLDNEW
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698