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

Unified Diff: Source/modules/crypto/WorkerGlobalScopeCrypto.h

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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
« no previous file with comments | « Source/heap/Heap.h ('k') | Source/modules/crypto/WorkerGlobalScopeCrypto.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/WorkerGlobalScopeCrypto.h
diff --git a/Source/modules/crypto/WorkerGlobalScopeCrypto.h b/Source/modules/crypto/WorkerGlobalScopeCrypto.h
index 9937bb6f4cea387cec74c642ef2813a3d39e5ca9..6774a9a1b71eea697fb1b14ad01c2ae4da719975 100644
--- a/Source/modules/crypto/WorkerGlobalScopeCrypto.h
+++ b/Source/modules/crypto/WorkerGlobalScopeCrypto.h
@@ -31,26 +31,31 @@
#ifndef WorkerGlobalScopeCrypto_h
#define WorkerGlobalScopeCrypto_h
-#include "core/workers/WorkerSupplementable.h"
+#include "core/workers/WorkerGlobalScope.h"
#include "heap/Handle.h"
+#include "platform/Supplementable.h"
namespace WebCore {
-class WorkerCrypto;
class ExecutionContext;
+class WorkerCrypto;
+class WorkerGlobalScope;
-class WorkerGlobalScopeCrypto FINAL : public WorkerSupplement {
+class WorkerGlobalScopeCrypto FINAL : public NoBaseWillBeGarbageCollected<WorkerGlobalScopeCrypto>, public WillBeHeapSupplement<WorkerGlobalScope> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeCrypto);
public:
virtual ~WorkerGlobalScopeCrypto();
- static WorkerGlobalScopeCrypto& from(WorkerSupplementable&);
- static WorkerCrypto* crypto(WorkerSupplementable&);
+ static WorkerGlobalScopeCrypto& from(WillBeHeapSupplementable<WorkerGlobalScope>&);
+ static WorkerCrypto* crypto(WillBeHeapSupplementable<WorkerGlobalScope>&);
WorkerCrypto* crypto() const;
+ virtual void trace(Visitor*);
+
private:
WorkerGlobalScopeCrypto();
static const char* supplementName();
- mutable RefPtrWillBePersistent<WorkerCrypto> m_crypto;
+ mutable RefPtrWillBeMember<WorkerCrypto> m_crypto;
};
} // namespace WebCore
« no previous file with comments | « Source/heap/Heap.h ('k') | Source/modules/crypto/WorkerGlobalScopeCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698