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

Unified Diff: Source/platform/network/HTTPHeaderMap.cpp

Issue 99733002: Update HTTPHeaderMap wrappers to use AtomicString type for header values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years 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/platform/network/HTTPHeaderMap.h ('k') | Source/platform/network/HTTPParsers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/HTTPHeaderMap.cpp
diff --git a/Source/platform/network/HTTPHeaderMap.cpp b/Source/platform/network/HTTPHeaderMap.cpp
index ee422940a2e36a1f5f9e84676674c37498625820..b950ef34b12704dfb0e1ad0b4393bee340502a6a 100644
--- a/Source/platform/network/HTTPHeaderMap.cpp
+++ b/Source/platform/network/HTTPHeaderMap.cpp
@@ -62,7 +62,7 @@ void HTTPHeaderMap::adopt(PassOwnPtr<CrossThreadHTTPHeaderMapData> data)
size_t dataSize = data->size();
for (size_t index = 0; index < dataSize; ++index) {
pair<String, String>& header = (*data)[index];
- set(header.first, header.second);
+ set(AtomicString(header.first), AtomicString(header.second));
}
}
@@ -94,7 +94,7 @@ struct CaseFoldingCStringTranslator {
}
};
-AtomicString HTTPHeaderMap::get(const char* name) const
+const AtomicString& HTTPHeaderMap::get(const char* name) const
{
const_iterator i = find<CaseFoldingCStringTranslator>(name);
if (i == end())
« no previous file with comments | « Source/platform/network/HTTPHeaderMap.h ('k') | Source/platform/network/HTTPParsers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698