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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReader.h

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/core/fileapi/FileReader.h
diff --git a/third_party/WebKit/Source/core/fileapi/FileReader.h b/third_party/WebKit/Source/core/fileapi/FileReader.h
index ee70d5aff7777ddba8a13c6d294b1a391d5160e7..e5d95f2812d7ed8ac59a7d01e02ea23136dbe84b 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReader.h
+++ b/third_party/WebKit/Source/core/fileapi/FileReader.h
@@ -33,7 +33,7 @@
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "core/CoreExport.h"
-#include "core/dom/SuspendableObject.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
#include "core/fileapi/FileError.h"
#include "core/fileapi/FileReaderLoader.h"
@@ -51,7 +51,7 @@ class StringOrArrayBuffer;
class CORE_EXPORT FileReader final : public EventTargetWithInlineData,
public ActiveScriptWrappable<FileReader>,
- public SuspendableObject,
+ public ContextLifecycleObserver,
public FileReaderLoaderClient {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(FileReader);
@@ -74,7 +74,7 @@ class CORE_EXPORT FileReader final : public EventTargetWithInlineData,
DOMException* error() { return m_error; }
void result(StringOrArrayBuffer& resultAttribute) const;
- // SuspendableObject
+ // ContextLifecycleObserver
void contextDestroyed() override;
// ScriptWrappable
@@ -83,7 +83,7 @@ class CORE_EXPORT FileReader final : public EventTargetWithInlineData,
// EventTarget
const AtomicString& interfaceName() const override;
ExecutionContext* getExecutionContext() const override {
- return SuspendableObject::getExecutionContext();
+ return ContextLifecycleObserver::getExecutionContext();
}
// FileReaderLoaderClient
« no previous file with comments | « third_party/WebKit/Source/core/dom/MessagePort.cpp ('k') | third_party/WebKit/Source/core/fileapi/FileReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698