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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 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
Index: third_party/WebKit/Source/modules/fetch/Response.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp
index 60220e0d67ca8238324508c8945e3f0e45e19208..75a1234553d4deb919e49e7e68bf3e0bbeba28b0 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -108,7 +108,7 @@ bool isValidReasonPhrase(const String& statusText)
Response* Response::create(ScriptState* scriptState, ExceptionState& exceptionState)
{
- return create(scriptState->executionContext(), nullptr, String(), ResponseInit(), exceptionState);
+ return create(scriptState->getExecutionContext(), nullptr, String(), ResponseInit(), exceptionState);
}
Response* Response::create(ScriptState* scriptState, ScriptValue bodyValue, const Dictionary& init, ExceptionState& exceptionState)
@@ -116,7 +116,7 @@ Response* Response::create(ScriptState* scriptState, ScriptValue bodyValue, cons
v8::Local<v8::Value> body = bodyValue.v8Value();
ScriptValue reader;
v8::Isolate* isolate = scriptState->isolate();
- ExecutionContext* executionContext = scriptState->executionContext();
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
OwnPtr<FetchDataConsumerHandle> bodyHandle;
String contentType;
@@ -353,15 +353,15 @@ Response* Response::clone(ExceptionState& exceptionState)
return nullptr;
}
- FetchResponseData* response = m_response->clone(executionContext());
+ FetchResponseData* response = m_response->clone(getExecutionContext());
Headers* headers = Headers::create(response->headerList());
headers->setGuard(m_headers->getGuard());
- return new Response(executionContext(), response, headers);
+ return new Response(getExecutionContext(), response, headers);
}
bool Response::hasPendingActivity() const
{
- if (!executionContext() || executionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->activeDOMObjectsAreStopped())
return false;
if (!internalBodyBuffer())
return false;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestTest.cpp ('k') | third_party/WebKit/Source/modules/fetch/ResponseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698