| Index: Source/platform/exported/WebServiceWorkerRequest.cpp
|
| diff --git a/Source/platform/exported/WebServiceWorkerRequest.cpp b/Source/platform/exported/WebServiceWorkerRequest.cpp
|
| index cbf1dcef9206c32da0edee78b6b16c7999d98f67..88537d42d6ca05daf201534f876ef55ce215d85a 100644
|
| --- a/Source/platform/exported/WebServiceWorkerRequest.cpp
|
| +++ b/Source/platform/exported/WebServiceWorkerRequest.cpp
|
| @@ -17,6 +17,7 @@ public:
|
| WebServiceWorkerRequestPrivate()
|
| : m_mode(WebURLRequest::FetchRequestModeNoCORS)
|
| , m_credentialsMode(WebURLRequest::FetchCredentialsModeOmit)
|
| + , m_redirectMode(WebURLRequest::FetchRedirectModeFollow)
|
| , m_requestContext(WebURLRequest::RequestContextUnspecified)
|
| , m_frameType(WebURLRequest::FrameTypeNone)
|
| , m_isReload(false)
|
| @@ -29,6 +30,7 @@ public:
|
| Referrer m_referrer;
|
| WebURLRequest::FetchRequestMode m_mode;
|
| WebURLRequest::FetchCredentialsMode m_credentialsMode;
|
| + WebURLRequest::FetchRedirectMode m_redirectMode;
|
| WebURLRequest::RequestContext m_requestContext;
|
| WebURLRequest::FrameType m_frameType;
|
| bool m_isReload;
|
| @@ -146,6 +148,16 @@ WebURLRequest::FetchCredentialsMode WebServiceWorkerRequest::credentialsMode() c
|
| return m_private->m_credentialsMode;
|
| }
|
|
|
| +void WebServiceWorkerRequest::setRedirectMode(WebURLRequest::FetchRedirectMode redirectMode)
|
| +{
|
| + m_private->m_redirectMode = redirectMode;
|
| +}
|
| +
|
| +WebURLRequest::FetchRedirectMode WebServiceWorkerRequest::redirectMode() const
|
| +{
|
| + return m_private->m_redirectMode;
|
| +}
|
| +
|
| void WebServiceWorkerRequest::setRequestContext(WebURLRequest::RequestContext requestContext)
|
| {
|
| m_private->m_requestContext = requestContext;
|
|
|