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

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

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/dom/StringCallback.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StringCallback.cpp
diff --git a/Source/core/dom/StringCallback.cpp b/Source/core/dom/StringCallback.cpp
index 0718182e15d79502c09b22d576be31c4bcc8e1cc..7a95cee49cf19145f05705135a14ee3fef46384a 100644
--- a/Source/core/dom/StringCallback.cpp
+++ b/Source/core/dom/StringCallback.cpp
@@ -41,7 +41,7 @@ namespace {
class DispatchCallbackTask FINAL : public ExecutionContextTask {
public:
- static PassOwnPtr<DispatchCallbackTask> create(PassOwnPtrWillBeRawPtr<StringCallback> callback, const String& data, const String& taskName)
+ static PassOwnPtr<DispatchCallbackTask> create(StringCallback* callback, const String& data, const String& taskName)
{
return adoptPtr(new DispatchCallbackTask(callback, data, taskName));
}
@@ -57,21 +57,21 @@ public:
}
private:
- DispatchCallbackTask(PassOwnPtrWillBeRawPtr<StringCallback> callback, const String& data, const String& taskName)
+ DispatchCallbackTask(StringCallback* callback, const String& data, const String& taskName)
: m_callback(callback)
, m_data(data)
, m_taskName(taskName)
{
}
- OwnPtrWillBePersistent<StringCallback> m_callback;
+ Persistent<StringCallback> m_callback;
const String m_data;
const String m_taskName;
};
} // namespace
-void StringCallback::scheduleCallback(PassOwnPtrWillBeRawPtr<StringCallback> callback, ExecutionContext* context, const String& data, const String& instrumentationName)
+void StringCallback::scheduleCallback(StringCallback* callback, ExecutionContext* context, const String& data, const String& instrumentationName)
{
context->postTask(DispatchCallbackTask::create(callback, data, instrumentationName));
}
« no previous file with comments | « Source/core/dom/StringCallback.h ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698