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

Unified Diff: Source/modules/filesystem/DOMFileSystem.h

Issue 1194093002: Remove unused FS callback partial specializations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | Source/modules/filesystem/FileSystemCallbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DOMFileSystem.h
diff --git a/Source/modules/filesystem/DOMFileSystem.h b/Source/modules/filesystem/DOMFileSystem.h
index 8cbd582c8e140ee79090c3b9d7cf605daaf2de31..798737cc11eb27b5b7bc05a4f6e281955d776566 100644
--- a/Source/modules/filesystem/DOMFileSystem.h
+++ b/Source/modules/filesystem/DOMFileSystem.h
@@ -73,9 +73,6 @@ public:
// Schedule a callback. This should not cross threads (should be called on the same context thread).
// FIXME: move this to a more generic place.
template <typename CB, typename CBArg>
- static void scheduleCallback(ExecutionContext*, CB*, PassRefPtrWillBeRawPtr<CBArg>);
-
- template <typename CB, typename CBArg>
static void scheduleCallback(ExecutionContext*, CB*, CBArg*);
template <typename CB, typename CBArg>
@@ -91,12 +88,6 @@ public:
static void scheduleCallback(ExecutionContext*, CB*);
template <typename CB, typename CBArg>
- void scheduleCallback(CB* callback, PassRefPtrWillBeRawPtr<CBArg> callbackArg)
- {
- scheduleCallback(executionContext(), callback, callbackArg);
- }
-
- template <typename CB, typename CBArg>
void scheduleCallback(CB* callback, CBArg* callbackArg)
{
scheduleCallback(executionContext(), callback, callbackArg);
@@ -121,26 +112,6 @@ private:
}
};
- // A helper template to schedule a callback task.
- template <typename CB, typename CBArg>
- class DispatchCallbackRefPtrArgTask final : public DispatchCallbackTaskBase {
- public:
- DispatchCallbackRefPtrArgTask(CB* callback, PassRefPtrWillBeRawPtr<CBArg> arg)
- : m_callback(callback)
- , m_callbackArg(arg)
- {
- }
-
- virtual void performTask(ExecutionContext*) override
- {
- m_callback->handleEvent(m_callbackArg.get());
- }
-
- private:
- Persistent<CB> m_callback;
- RefPtrWillBePersistent<CBArg> m_callbackArg;
- };
-
template <typename CB, typename CBArg>
class DispatchCallbackPtrArgTask final : public DispatchCallbackTaskBase {
public:
@@ -201,14 +172,6 @@ private:
};
template <typename CB, typename CBArg>
-void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* callback, PassRefPtrWillBeRawPtr<CBArg> arg)
-{
- ASSERT(executionContext->isContextThread());
- if (callback)
- executionContext->postTask(FROM_HERE, adoptPtr(new DispatchCallbackRefPtrArgTask<CB, CBArg>(callback, arg)));
-}
-
-template <typename CB, typename CBArg>
void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, CB* callback, CBArg* arg)
{
ASSERT(executionContext->isContextThread());
« no previous file with comments | « no previous file | Source/modules/filesystem/FileSystemCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698