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

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

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)
Patch Set: Update test results after rebase Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_frame_test_client.h" 5 #include "components/test_runner/web_frame_test_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 688 }
689 689
690 bool WebFrameTestClient::runFileChooser( 690 bool WebFrameTestClient::runFileChooser(
691 const blink::WebFileChooserParams& params, 691 const blink::WebFileChooserParams& params,
692 blink::WebFileChooserCompletion* completion) { 692 blink::WebFileChooserCompletion* completion) {
693 delegate_->PrintMessage("Mock: Opening a file chooser.\n"); 693 delegate_->PrintMessage("Mock: Opening a file chooser.\n");
694 // FIXME: Add ability to set file names to a file upload control. 694 // FIXME: Add ability to set file names to a file upload control.
695 return false; 695 return false;
696 } 696 }
697 697
698 blink::WebEffectiveConnectionType
699 WebFrameTestClient::getEffectiveConnectionType() {
700 return test_runner_->effective_connection_type();
701 }
702
698 } // namespace test_runner 703 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_client.h ('k') | components/test_runner/web_frame_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698