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

Unified Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
index 340d5b9ee835a08592b5d9c9a3964512626eb316..14dffef5117c19457c7ff5bd3fd52db946a6efac 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
@@ -11,6 +11,7 @@
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMTypedArray.h"
#include "core/dom/ExceptionCode.h"
+#include "core/dom/ExecutionContext.h"
#include "core/streams/ReadableStreamController.h"
#include "core/streams/ReadableStreamOperations.h"
#include "modules/fetch/Body.h"
@@ -169,9 +170,9 @@
ASSERT(!loader_);
ASSERT(script_state_->ContextIsValid());
loader_ = loader;
- loader->Start(
- ReleaseHandle(),
- new LoaderClient(script_state_->GetExecutionContext(), this, client));
+ loader->Start(ReleaseHandle(),
+ new LoaderClient(ExecutionContext::From(script_state_.Get()),
+ this, client));
}
void BodyStreamBuffer::Tee(BodyStreamBuffer** branch1,
@@ -191,8 +192,8 @@
}
BytesConsumer* dest1 = nullptr;
BytesConsumer* dest2 = nullptr;
- BytesConsumer::Tee(script_state_->GetExecutionContext(), ReleaseHandle(),
- &dest1, &dest2);
+ BytesConsumer::Tee(ExecutionContext::From(script_state_.Get()),
+ ReleaseHandle(), &dest1, &dest2);
*branch1 = new BodyStreamBuffer(script_state_.Get(), dest1);
*branch2 = new BodyStreamBuffer(script_state_.Get(), dest2);
}
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Body.cpp ('k') | third_party/WebKit/Source/modules/fetch/FetchManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698