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

Unified Diff: Source/modules/serviceworkers/Request.cpp

Issue 546153002: Patch on top of https://codereview.chromium.org/433793002/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | « Source/modules/serviceworkers/Request.h ('k') | Source/modules/serviceworkers/Response.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Request.cpp
diff --git a/Source/modules/serviceworkers/Request.cpp b/Source/modules/serviceworkers/Request.cpp
index d8bcbf5fa35bb522709e850629602b72a06f74d4..a7a17e687e6e20c1e93aef42c5238c3d16617973 100644
--- a/Source/modules/serviceworkers/Request.cpp
+++ b/Source/modules/serviceworkers/Request.cpp
@@ -187,12 +187,12 @@ Request* Request::create(ExecutionContext* context, const String& input, const D
return createRequestWithRequestData(request, RequestInit(context, init, exceptionState), FetchRequestData::CORSMode, FetchRequestData::OmitCredentials, exceptionState);
}
-Request* Request::create(ExecutionContext* context, Request* input, ExceptionState& exceptionState)
+Request* Request::create(ExecutionContext* context, const Request* input, ExceptionState& exceptionState)
{
return create(context, input, Dictionary(), exceptionState);
}
-Request* Request::create(ExecutionContext* context, Request* input, const Dictionary& init, ExceptionState& exceptionState)
+Request* Request::create(ExecutionContext* context, const Request* input, const Dictionary& init, ExceptionState& exceptionState)
{
// "1. Let |request| be |input|'s associated request, if |input| is a
// Request object, and a new request otherwise."
@@ -301,7 +301,7 @@ String Request::credentials() const
return "";
}
-void Request::populateWebServiceWorkerRequest(WebServiceWorkerRequest& webRequest)
+void Request::populateWebServiceWorkerRequest(WebServiceWorkerRequest& webRequest) const
{
webRequest.setMethod(method());
webRequest.setURL(m_request->url());
« no previous file with comments | « Source/modules/serviceworkers/Request.h ('k') | Source/modules/serviceworkers/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698