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

Unified Diff: Source/WebCore/platform/network/chromium/ResourceResponse.cpp

Issue 10868088: Merge 124682 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 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/WebCore/platform/network/chromium/ResourceResponse.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/network/chromium/ResourceResponse.cpp
===================================================================
--- Source/WebCore/platform/network/chromium/ResourceResponse.cpp (revision 126643)
+++ Source/WebCore/platform/network/chromium/ResourceResponse.cpp (working copy)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google, Inc.
+ * Copyright (C) 2012 Google, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -30,6 +30,8 @@
PassOwnPtr<CrossThreadResourceResponseData> ResourceResponse::doPlatformCopyData(PassOwnPtr<CrossThreadResourceResponseData> data) const
{
+ data->m_securityInfo = CString(m_securityInfo.data(), m_securityInfo.length());
+ data->m_httpVersion = m_httpVersion;
data->m_appCacheID = m_appCacheID;
data->m_appCacheManifestURL = m_appCacheManifestURL.copy();
data->m_isMultipartPayload = m_isMultipartPayload;
@@ -38,14 +40,17 @@
data->m_wasAlternateProtocolAvailable = m_wasAlternateProtocolAvailable;
data->m_wasFetchedViaProxy = m_wasFetchedViaProxy;
data->m_responseTime = m_responseTime;
- data->m_remoteIPAddress = m_remoteIPAddress;
+ data->m_remoteIPAddress = m_remoteIPAddress.isolatedCopy();
data->m_remotePort = m_remotePort;
- // Bug https://bugs.webkit.org/show_bug.cgi?id=60397 this doesn't support m_downloadedFile.
+ // Bug https://bugs.webkit.org/show_bug.cgi?id=60397 this doesn't support m_downloadedFile,
+ // or whatever values may be present in the opaque m_extraData structure.
return data;
}
void ResourceResponse::doPlatformAdopt(PassOwnPtr<CrossThreadResourceResponseData> data)
{
+ m_securityInfo = data->m_securityInfo;
+ m_httpVersion = data->m_httpVersion;
m_appCacheID = data->m_appCacheID;
m_appCacheManifestURL = data->m_appCacheManifestURL.copy();
m_isMultipartPayload = data->m_isMultipartPayload;
@@ -56,7 +61,8 @@
m_responseTime = data->m_responseTime;
m_remoteIPAddress = data->m_remoteIPAddress;
m_remotePort = data->m_remotePort;
- // Bug https://bugs.webkit.org/show_bug.cgi?id=60397 this doesn't support m_downloadedFile.
+ // Bug https://bugs.webkit.org/show_bug.cgi?id=60397 this doesn't support m_downloadedFile,
+ // or whatever values may be present in the opaque m_extraData structure.
}
} // namespace WebCore
« no previous file with comments | « Source/WebCore/platform/network/chromium/ResourceResponse.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698