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

Side by Side Diff: content/renderer/scheduler/web_scheduler_impl.cc

Issue 1022443002: Remove unused shutdown() function from WebSchedulerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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 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 "content/renderer/scheduler/web_scheduler_impl.h" 5 #include "content/renderer/scheduler/web_scheduler_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "content/renderer/scheduler/renderer_scheduler.h" 9 #include "content/renderer/scheduler/renderer_scheduler.h"
10 #include "third_party/WebKit/public/platform/WebTraceLocation.h" 10 #include "third_party/WebKit/public/platform/WebTraceLocation.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 DCHECK(timer_task_runner_); 92 DCHECK(timer_task_runner_);
93 scoped_ptr<blink::WebThread::Task> scoped_task(task); 93 scoped_ptr<blink::WebThread::Task> scoped_task(task);
94 tracked_objects::Location location(web_location.functionName(), 94 tracked_objects::Location location(web_location.functionName(),
95 web_location.fileName(), -1, nullptr); 95 web_location.fileName(), -1, nullptr);
96 timer_task_runner_->PostDelayedTask( 96 timer_task_runner_->PostDelayedTask(
97 location, 97 location,
98 base::Bind(&WebSchedulerImpl::runTask, base::Passed(&scoped_task)), 98 base::Bind(&WebSchedulerImpl::runTask, base::Passed(&scoped_task)),
99 base::TimeDelta::FromMilliseconds(delayMs)); 99 base::TimeDelta::FromMilliseconds(delayMs));
100 } 100 }
101 101
102 void WebSchedulerImpl::shutdown() {
103 // TODO(rmcilroy): Delete this method once the blink side is removed.
104 }
105
106 } // namespace content 102 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/scheduler/web_scheduler_impl.h ('k') | mojo/services/html_viewer/webscheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698