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

Side by Side Diff: third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.cpp

Issue 2163983004: Pass per-frame task runners to Workers (when possible) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments 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
(Empty)
1 // Copyright 2016 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 #include "core/workers/ParentFrameTaskRunners.h"
6
7 #include "core/dom/Document.h"
8 #include "core/dom/TaskRunnerHelper.h"
9 #include "wtf/Assertions.h"
10
11 namespace blink {
12
13 ParentFrameTaskRunners::~ParentFrameTaskRunners()
14 {
15 }
16
17 WebTaskRunner* ParentFrameTaskRunners::getUnthrottledTaskRunner()
18 {
19 return m_unthrottledTaskRunner.get();
20 }
21
22 WebTaskRunner* ParentFrameTaskRunners::getTimerTaskRunner()
23 {
24 return m_timerTaskRunner.get();
25 }
26
27 WebTaskRunner* ParentFrameTaskRunners::getLoadingTaskRunner()
28 {
29 return m_loadingTaskRunner.get();
30 }
31
32 ParentFrameTaskRunners::ParentFrameTaskRunners(Document* document)
33 : m_unthrottledTaskRunner(TaskRunnerHelper::getUnthrottledTaskRunner(documen t)->clone())
34 , m_timerTaskRunner(TaskRunnerHelper::getTimerTaskRunner(document)->clone())
35 , m_loadingTaskRunner(TaskRunnerHelper::getLoadingTaskRunner(document)->clon e())
36 {
37 DCHECK(document->isContextThread());
38 }
39
40 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h ('k') | third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698