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

Side by Side Diff: mojo/services/html_viewer/webscheduler_impl.h

Issue 959873003: Add WebScheduler implementation to HTMLViewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBSCHEDULER_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBSCHEDULER_IMPL_H_
7
8 #include "third_party/WebKit/public/platform/WebScheduler.h"
9 #include "third_party/WebKit/public/platform/WebThread.h"
10 #include "third_party/WebKit/public/platform/WebTraceLocation.h"
11
12 namespace html_viewer {
13
14 class WebSchedulerImpl : public blink::WebScheduler {
15 public:
16 explicit WebSchedulerImpl(
17 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
18 ~WebSchedulerImpl() override;
19
20 private:
21 void postIdleTask(const blink::WebTraceLocation& location,
jamesr 2015/02/25 20:53:22 document that these functions implement blink::Web
22 blink::WebScheduler::IdleTask* task) override;
jamesr 2015/02/25 20:53:22 these functions implement a cross-repo interface,
23 void postLoadingTask(const blink::WebTraceLocation& location,
24 blink::WebThread::Task* task) override;
25 void shutdown() override;
26
27 static void runIdleTask(scoped_ptr<blink::WebScheduler::IdleTask> task);
jamesr 2015/02/25 20:53:22 this is chrome code so it should follow chromium n
28 static void runTask(scoped_ptr<blink::WebThread::Task> task);
29
30 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
31 };
jamesr 2015/02/25 20:53:22 DISALLOW_COPY_AND_ASSIGN
32
33 } // namespace html_viewer
34
35 #endif // MOJO_SERVICES_HTML_VIEWER_WEBSCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.cc ('k') | mojo/services/html_viewer/webscheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698