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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 1844053003: CREDENTIAL: Rework the integration with Fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ? Created 4 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/platform/network/ResourceRequest.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
index 02699d9cd1e00233a1ca5b45c4a9da69c621d879..be7dd7d0f9a1df4c7a3e2ce538d952cea16d54c1 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
@@ -51,6 +51,7 @@ ResourceRequest::ResourceRequest(CrossThreadResourceRequestData* data)
m_httpHeaderFields.adopt(data->m_httpHeaders.release());
setHTTPBody(data->m_httpBody);
+ setAttachedCredentialBody(data->m_attachedCredentialBody);
setAllowStoredCredentials(data->m_allowStoredCredentials);
setReportUploadProgress(data->m_reportUploadProgress);
setHasUserGesture(data->m_hasUserGesture);
@@ -91,6 +92,8 @@ PassOwnPtr<CrossThreadResourceRequestData> ResourceRequest::copyData() const
if (m_httpBody)
data->m_httpBody = m_httpBody->deepCopy();
+ if (m_attachedCredentialBody)
+ data->m_attachedCredentialBody = m_attachedCredentialBody->deepCopy();
data->m_allowStoredCredentials = m_allowStoredCredentials;
data->m_reportUploadProgress = m_reportUploadProgress;
data->m_hasUserGesture = m_hasUserGesture;
@@ -283,6 +286,16 @@ void ResourceRequest::setHTTPBody(PassRefPtr<EncodedFormData> httpBody)
m_httpBody = httpBody;
}
+EncodedFormData* ResourceRequest::attachedCredentialBody() const
+{
+ return m_attachedCredentialBody.get();
+}
+
+void ResourceRequest::setAttachedCredentialBody(PassRefPtr<EncodedFormData> attachedCredentialBody)
+{
+ m_attachedCredentialBody = attachedCredentialBody;
+}
+
bool ResourceRequest::allowStoredCredentials() const
{
return m_allowStoredCredentials;

Powered by Google App Engine
This is Rietveld 408576698