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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: remove WebTaskRunner::postTask(base::Closure). git cl format Created 4 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 | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 void BlinkTestRunner::SetDeviceOrientationData( 287 void BlinkTestRunner::SetDeviceOrientationData(
288 const WebDeviceOrientationData& data) { 288 const WebDeviceOrientationData& data) {
289 SetMockDeviceOrientationData(data); 289 SetMockDeviceOrientationData(data);
290 } 290 }
291 291
292 void BlinkTestRunner::PrintMessage(const std::string& message) { 292 void BlinkTestRunner::PrintMessage(const std::string& message) {
293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
294 } 294 }
295 295
296 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) { 296 void BlinkTestRunner::PostTask(const base::Closure& task) {
297 Platform::current()->currentThread()->getWebTaskRunner()->postTask( 297 Platform::current()
298 BLINK_FROM_HERE, task); 298 ->currentThread()
299 ->getWebTaskRunner()
300 ->toSingleThreadTaskRunner()
301 ->PostTask(BLINK_FROM_HERE, task);
299 } 302 }
300 303
301 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task, 304 void BlinkTestRunner::PostDelayedTask(const base::Closure& task, long long ms) {
302 long long ms) {
303 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask( 305 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask(
304 BLINK_FROM_HERE, task, ms); 306 BLINK_FROM_HERE, task, ms);
305 } 307 }
306 308
307 WebString BlinkTestRunner::RegisterIsolatedFileSystem( 309 WebString BlinkTestRunner::RegisterIsolatedFileSystem(
308 const blink::WebVector<blink::WebString>& absolute_filenames) { 310 const blink::WebVector<blink::WebString>& absolute_filenames) {
309 std::vector<base::FilePath> files; 311 std::vector<base::FilePath> files;
310 for (size_t i = 0; i < absolute_filenames.size(); ++i) 312 for (size_t i = 0; i < absolute_filenames.size(); ++i)
311 files.push_back(blink::WebStringToFilePath(absolute_filenames[i])); 313 files.push_back(blink::WebStringToFilePath(absolute_filenames[i]));
312 std::string filesystem_id; 314 std::string filesystem_id;
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 void BlinkTestRunner::ReportLeakDetectionResult( 1010 void BlinkTestRunner::ReportLeakDetectionResult(
1009 const LeakDetectionResult& report) { 1011 const LeakDetectionResult& report) {
1010 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1011 } 1013 }
1012 1014
1013 void BlinkTestRunner::OnDestruct() { 1015 void BlinkTestRunner::OnDestruct() {
1014 delete this; 1016 delete this;
1015 } 1017 }
1016 1018
1017 } // namespace content 1019 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698