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

Unified Diff: Source/core/dom/StringCallback.h

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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/dom/MutationObserver.cpp ('k') | Source/core/dom/StringCallback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StringCallback.h
diff --git a/Source/core/dom/StringCallback.h b/Source/core/dom/StringCallback.h
index fed4477f438022974e99a6805505e6297a2d10f2..0e5b4c9e8de3ea0eb73471a2783e293d81078ca2 100644
--- a/Source/core/dom/StringCallback.h
+++ b/Source/core/dom/StringCallback.h
@@ -32,19 +32,18 @@
#define StringCallback_h
#include "wtf/Forward.h"
-#include "wtf/RefCounted.h"
namespace WebCore {
class ExecutionContext;
-class StringCallback : public RefCounted<StringCallback> {
+class StringCallback {
public:
virtual ~StringCallback() { }
virtual bool handleEvent(const String& data) = 0;
// Helper to post callback task.
- void scheduleCallback(ExecutionContext*, const String& data);
+ static void scheduleCallback(PassOwnPtr<StringCallback>, ExecutionContext*, const String& data);
};
} // namespace WebCore
« no previous file with comments | « Source/core/dom/MutationObserver.cpp ('k') | Source/core/dom/StringCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698