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

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: clear attachedcredentials 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..8ab07862b0ad733e0c723ba09ff3be9f6280a39a 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);
+ setAttachedCredential(data->m_attachedCredential);
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_attachedCredential)
+ data->m_attachedCredential = m_attachedCredential->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::attachedCredential() const
+{
+ return m_attachedCredential.get();
+}
+
+void ResourceRequest::setAttachedCredential(PassRefPtr<EncodedFormData> attachedCredential)
+{
+ m_attachedCredential = attachedCredential;
+}
+
bool ResourceRequest::allowStoredCredentials() const
{
return m_allowStoredCredentials;
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceRequest.h ('k') | third_party/WebKit/public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698