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

Side by Side Diff: components/html_viewer/web_scheduler_impl.cc

Issue 1099303002: Move html_viewer from mojo/services to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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 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 // An implementation of WebThread in terms of base::MessageLoop and 5 // An implementation of WebThread in terms of base::MessageLoop and
6 // base::Thread 6 // base::Thread
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/tracked_objects.h" 10 #include "base/tracked_objects.h"
11 #include "mojo/services/html_viewer/web_scheduler_impl.h" 11 #include "components/html_viewer/web_scheduler_impl.h"
12 12
13 namespace html_viewer { 13 namespace html_viewer {
14 14
15 WebSchedulerImpl::WebSchedulerImpl( 15 WebSchedulerImpl::WebSchedulerImpl(
16 scoped_refptr<base::SingleThreadTaskRunner> task_runner) 16 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
17 : task_runner_(task_runner) { 17 : task_runner_(task_runner) {
18 } 18 }
19 19
20 WebSchedulerImpl::~WebSchedulerImpl() { 20 WebSchedulerImpl::~WebSchedulerImpl() {
21 } 21 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // TODO(davemoore) Implement idle scheduling. 58 // TODO(davemoore) Implement idle scheduling.
59 task->run(0); 59 task->run(0);
60 } 60 }
61 61
62 // static 62 // static
63 void WebSchedulerImpl::RunTask(scoped_ptr<blink::WebThread::Task> task) { 63 void WebSchedulerImpl::RunTask(scoped_ptr<blink::WebThread::Task> task) {
64 task->run(); 64 task->run();
65 } 65 }
66 66
67 } // namespace html_viewer 67 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/web_scheduler_impl.h ('k') | components/html_viewer/web_socket_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698