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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2814273006: Remove an unnecessary CachedMetadata copy in URLLoaderClientImpl (Closed)
Patch Set: fix Created 3 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
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/url_loader_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 4484df9e30a3236d7084774c30afbec7d6cbf2cb..442707673238e367e074218c6e41ea46e831a51c 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -189,13 +189,16 @@ void ResourceDispatcher::OnReceivedResponse(
}
void ResourceDispatcher::OnReceivedCachedMetadata(
- int request_id, const std::vector<char>& data) {
+ int request_id,
+ const std::vector<uint8_t>& data) {
PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
if (!request_info)
return;
- if (data.size())
- request_info->peer->OnReceivedCachedMetadata(&data.front(), data.size());
+ if (data.size()) {
+ request_info->peer->OnReceivedCachedMetadata(
+ reinterpret_cast<const char*>(&data.front()), data.size());
+ }
}
void ResourceDispatcher::OnSetDataBuffer(int request_id,
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/url_loader_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698