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

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

Issue 2218933003: Revert of Make WebTraceLocation be an alias of tracked_objects::Location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 const WebDeviceOrientationData& data) { 286 const WebDeviceOrientationData& data) {
287 SetMockDeviceOrientationData(data); 287 SetMockDeviceOrientationData(data);
288 } 288 }
289 289
290 void BlinkTestRunner::PrintMessage(const std::string& message) { 290 void BlinkTestRunner::PrintMessage(const std::string& message) {
291 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 291 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
292 } 292 }
293 293
294 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) { 294 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) {
295 Platform::current()->currentThread()->getWebTaskRunner()->postTask( 295 Platform::current()->currentThread()->getWebTaskRunner()->postTask(
296 BLINK_FROM_HERE, task); 296 WebTraceLocation(__FUNCTION__, __FILE__), task);
297 } 297 }
298 298
299 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task, 299 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task,
300 long long ms) { 300 long long ms) {
301 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask( 301 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask(
302 BLINK_FROM_HERE, task, ms); 302 WebTraceLocation(__FUNCTION__, __FILE__), task, ms);
303 } 303 }
304 304
305 WebString BlinkTestRunner::RegisterIsolatedFileSystem( 305 WebString BlinkTestRunner::RegisterIsolatedFileSystem(
306 const blink::WebVector<blink::WebString>& absolute_filenames) { 306 const blink::WebVector<blink::WebString>& absolute_filenames) {
307 std::vector<base::FilePath> files; 307 std::vector<base::FilePath> files;
308 for (size_t i = 0; i < absolute_filenames.size(); ++i) 308 for (size_t i = 0; i < absolute_filenames.size(); ++i)
309 files.push_back(blink::WebStringToFilePath(absolute_filenames[i])); 309 files.push_back(blink::WebStringToFilePath(absolute_filenames[i]));
310 std::string filesystem_id; 310 std::string filesystem_id;
311 Send(new LayoutTestHostMsg_RegisterIsolatedFileSystem( 311 Send(new LayoutTestHostMsg_RegisterIsolatedFileSystem(
312 routing_id(), files, &filesystem_id)); 312 routing_id(), files, &filesystem_id));
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 void BlinkTestRunner::ReportLeakDetectionResult( 1016 void BlinkTestRunner::ReportLeakDetectionResult(
1017 const LeakDetectionResult& report) { 1017 const LeakDetectionResult& report) {
1018 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1018 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1019 } 1019 }
1020 1020
1021 void BlinkTestRunner::OnDestruct() { 1021 void BlinkTestRunner::OnDestruct() {
1022 delete this; 1022 delete this;
1023 } 1023 }
1024 1024
1025 } // namespace content 1025 } // namespace content
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698