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

Unified Diff: third_party/WebKit/Source/core/fileapi/Blob.cpp

Issue 2697723003: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Window.{focus|close} both take ExecutionContext. Created 3 years, 9 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 | « third_party/WebKit/Source/core/fileapi/Blob.h ('k') | third_party/WebKit/Source/core/fileapi/Blob.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fileapi/Blob.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/Blob.cpp b/third_party/WebKit/Source/core/fileapi/Blob.cpp
index ad3473192a4529138064ce37fd54f79172e23fbb..2cd6c87eda2e923e86de356a3000cbef872b5450 100644
--- a/third_party/WebKit/Source/core/fileapi/Blob.cpp
+++ b/third_party/WebKit/Source/core/fileapi/Blob.cpp
@@ -30,7 +30,9 @@
#include "core/fileapi/Blob.h"
+#include <memory>
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/DOMURL.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
@@ -38,7 +40,6 @@
#include "core/frame/UseCounter.h"
#include "platform/blob/BlobRegistry.h"
#include "platform/blob/BlobURL.h"
-#include <memory>
namespace blink {
@@ -193,8 +194,7 @@ Blob* Blob::slice(long long start,
return Blob::create(BlobDataHandle::create(std::move(blobData), length));
}
-void Blob::close(ExecutionContext* executionContext,
- ExceptionState& exceptionState) {
+void Blob::close(ScriptState* scriptState, ExceptionState& exceptionState) {
if (isClosed()) {
exceptionState.throwDOMException(InvalidStateError,
"Blob has been closed.");
@@ -204,7 +204,7 @@ void Blob::close(ExecutionContext* executionContext,
// Dereferencing a Blob that has been closed should result in
// a network error. Revoke URLs registered against it through
// its UUID.
- DOMURL::revokeObjectUUID(executionContext, uuid());
+ DOMURL::revokeObjectUUID(scriptState->getExecutionContext(), uuid());
// A Blob enters a 'readability state' of closed, where it will report its
// size as zero. Blob and FileReader operations now throws on
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/Blob.h ('k') | third_party/WebKit/Source/core/fileapi/Blob.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698