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

Unified Diff: third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: +DISALLOW_COPY_AND_ASSIGN for win build fix 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
diff --git a/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h b/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
index 64f4f30fab9fcbf4a9c7c2146c9f2397f67831a6..c8bd52f3a0e24e305f1d5bdca9454c46f1828dd0 100644
--- a/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
+++ b/third_party/WebKit/Source/core/workers/ParentFrameTaskRunners.h
@@ -38,13 +38,15 @@ class CORE_EXPORT ParentFrameTaskRunners final
}
// Might return nullptr for unsupported task types.
- WebTaskRunner* get(TaskType);
+ RefPtr<WebTaskRunner> get(TaskType);
DECLARE_VIRTUAL_TRACE();
private:
- using TaskRunnerHashMap =
- HashMap<TaskType, WebTaskRunner*, WTF::IntHash<TaskType>, TaskTypeTraits>;
+ using TaskRunnerHashMap = HashMap<TaskType,
+ RefPtr<WebTaskRunner>,
+ WTF::IntHash<TaskType>,
+ TaskTypeTraits>;
// LocalFrame could be nullptr if the worker is not associated with a
// particular local frame.

Powered by Google App Engine
This is Rietveld 408576698