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

Unified Diff: Source/core/page/ContextMenuProvider.h

Issue 665763002: Oilpan: move context menu providers to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated GC_PLUGIN_IGNORE() Created 6 years, 2 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/core/page/ContextMenuController.cpp ('k') | Source/core/page/CustomContextMenuProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/ContextMenuProvider.h
diff --git a/Source/core/page/ContextMenuProvider.h b/Source/core/page/ContextMenuProvider.h
index e31e0ceda161b16382e20683e99ceb3bad125a29..0642c74226e455d0bd1971ee3e1c2513dab977c5 100644
--- a/Source/core/page/ContextMenuProvider.h
+++ b/Source/core/page/ContextMenuProvider.h
@@ -31,6 +31,7 @@
#ifndef ContextMenuProvider_h
#define ContextMenuProvider_h
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
namespace blink {
@@ -38,15 +39,16 @@ namespace blink {
class ContextMenu;
class ContextMenuItem;
-class ContextMenuProvider : public RefCounted<ContextMenuProvider> {
+class ContextMenuProvider : public RefCountedWillBeGarbageCollectedFinalized<ContextMenuProvider> {
public:
- virtual ~ContextMenuProvider() { };
+ virtual ~ContextMenuProvider() { }
+ virtual void trace(Visitor*) { }
virtual void populateContextMenu(ContextMenu*) = 0;
virtual void contextMenuItemSelected(const ContextMenuItem*) = 0;
virtual void contextMenuCleared() = 0;
};
-}
+} // namespace blink
#endif // ContextMenuProvider_h
« no previous file with comments | « Source/core/page/ContextMenuController.cpp ('k') | Source/core/page/CustomContextMenuProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698