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

Unified Diff: Source/core/workers/WorkerInspectorProxy.h

Issue 1253293002: Oilpan: Remove raw pointer to ExecutionContext from WorkerInspectorProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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: Source/core/workers/WorkerInspectorProxy.h
diff --git a/Source/core/workers/WorkerInspectorProxy.h b/Source/core/workers/WorkerInspectorProxy.h
index 31ceee807b1cf3eb1733cdae62c69c64a4bc17f6..81bab2fb868ea2619409fd248589ce0c4caf2977 100644
--- a/Source/core/workers/WorkerInspectorProxy.h
+++ b/Source/core/workers/WorkerInspectorProxy.h
@@ -6,6 +6,7 @@
#define WorkerInspectorProxy_h
#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
#include "public/platform/WebThread.h"
#include "wtf/Forward.h"
@@ -19,17 +20,19 @@ class WorkerThread;
// A proxy for talking to the worker inspector on the worker thread.
// All of these methods should be called on the main thread.
-class CORE_EXPORT WorkerInspectorProxy final {
+class CORE_EXPORT WorkerInspectorProxy final : public NoBaseWillBeGarbageCollectedFinalized<WorkerInspectorProxy> {
public:
- static PassOwnPtr<WorkerInspectorProxy> create();
+ static PassOwnPtrWillBeRawPtr<WorkerInspectorProxy> create();
~WorkerInspectorProxy();
+ DECLARE_TRACE();
- class PageInspector {
+ class PageInspector : public NoBaseWillBeGarbageCollectedFinalized<PageInspector> {
public:
virtual ~PageInspector() { }
virtual void dispatchMessageFromWorker(const String&) = 0;
virtual void workerConsoleAgentEnabled(WorkerGlobalScopeProxy*) = 0;
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
};
void workerThreadCreated(ExecutionContext*, WorkerThread*, const KURL&);
@@ -51,8 +54,8 @@ private:
void addDebuggerTaskForWorker(const WebTraceLocation&, PassOwnPtr<WebThread::Task>);
WorkerThread* m_workerThread;
haraken 2015/07/30 07:47:32 This raw pointer would be safe since the m_workerT
- ExecutionContext* m_executionContext;
- WorkerInspectorProxy::PageInspector* m_pageInspector;
+ RawPtrWillBeMember<ExecutionContext> m_executionContext;
+ RawPtrWillBeMember<WorkerInspectorProxy::PageInspector> m_pageInspector;
WorkerGlobalScopeProxy* m_workerGlobalScopeProxy;
haraken 2015/07/30 07:47:32 I guess this pointer has a risk of becoming a stal
keishi 2015/08/03 09:35:56 Done.
};

Powered by Google App Engine
This is Rietveld 408576698