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

Side by Side Diff: components/scheduler/child/web_task_runner_impl.cc

Issue 1402933002: Revert "Post loading tasks on the appropriate WebFrameScheduler's queue." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad merge Created 5 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
« no previous file with comments | « components/scheduler/child/web_task_runner_impl.h ('k') | content/child/blink_platform_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/scheduler/child/web_task_runner_impl.h" 5 #include "components/scheduler/child/web_task_runner_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "third_party/WebKit/public/platform/WebTraceLocation.h" 10 #include "third_party/WebKit/public/platform/WebTraceLocation.h"
(...skipping 18 matching lines...) Expand all
29 const blink::WebTraceLocation& web_location, 29 const blink::WebTraceLocation& web_location,
30 blink::WebTaskRunner::Task* task, 30 blink::WebTaskRunner::Task* task,
31 double delayMs) { 31 double delayMs) {
32 tracked_objects::Location location(web_location.functionName(), 32 tracked_objects::Location location(web_location.functionName(),
33 web_location.fileName(), -1, nullptr); 33 web_location.fileName(), -1, nullptr);
34 task_runner_->PostDelayedTask( 34 task_runner_->PostDelayedTask(
35 location, base::Bind(&blink::WebTaskRunner::Task::run, base::Owned(task)), 35 location, base::Bind(&blink::WebTaskRunner::Task::run, base::Owned(task)),
36 base::TimeDelta::FromMillisecondsD(delayMs)); 36 base::TimeDelta::FromMillisecondsD(delayMs));
37 } 37 }
38 38
39 blink::WebTaskRunner* WebTaskRunnerImpl::clone() {
40 return new WebTaskRunnerImpl(task_runner_);
41 }
42
43 } // namespace scheduler 39 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/web_task_runner_impl.h ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698