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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef ParentFrameTaskRunners_h 5 #ifndef ParentFrameTaskRunners_h
6 #define ParentFrameTaskRunners_h 6 #define ParentFrameTaskRunners_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "core/dom/TaskRunnerHelper.h" 10 #include "core/dom/TaskRunnerHelper.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 private: 45 private:
46 using TaskRunnerHashMap = HashMap<TaskType, 46 using TaskRunnerHashMap = HashMap<TaskType,
47 RefPtr<WebTaskRunner>, 47 RefPtr<WebTaskRunner>,
48 WTF::IntHash<TaskType>, 48 WTF::IntHash<TaskType>,
49 TaskTypeTraits>; 49 TaskTypeTraits>;
50 50
51 // LocalFrame could be nullptr if the worker is not associated with a 51 // LocalFrame could be nullptr if the worker is not associated with a
52 // particular local frame. 52 // particular local frame.
53 explicit ParentFrameTaskRunners(LocalFrame*); 53 explicit ParentFrameTaskRunners(LocalFrame*);
54 54
55 void contextDestroyed() override; 55 void contextDestroyed(ExecutionContext*) override;
56 56
57 Mutex m_taskRunnersMutex; 57 Mutex m_taskRunnersMutex;
58 TaskRunnerHashMap m_taskRunners; 58 TaskRunnerHashMap m_taskRunners;
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // ParentFrameTaskRunners_h 63 #endif // ParentFrameTaskRunners_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698