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

Unified Diff: content/child/url_loader_client_impl.cc

Issue 2629513003: Implement CachedMetadata handling on MojoAsyncResourceHandler (Closed)
Patch Set: fix Created 3 years, 11 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/url_loader_client_impl.h ('k') | content/child/url_loader_client_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/url_loader_client_impl.cc
diff --git a/content/child/url_loader_client_impl.cc b/content/child/url_loader_client_impl.cc
index 04aee613ace7c63b19db4b3b8c5f995f9cf9ba30..59d29623ed5084c2f9438a098592ddfe63f2c99f 100644
--- a/content/child/url_loader_client_impl.cc
+++ b/content/child/url_loader_client_impl.cc
@@ -134,6 +134,13 @@ void URLLoaderClientImpl::OnDataDownloaded(int64_t data_len,
Dispatch(ResourceMsg_DataDownloaded(request_id_, data_len, encoded_data_len));
}
+void URLLoaderClientImpl::OnReceiveCachedMetadata(
+ const std::vector<uint8_t>& data) {
+ const char* data_ptr = reinterpret_cast<const char*>(data.data());
+ Dispatch(ResourceMsg_ReceivedCachedMetadata(
+ request_id_, std::vector<char>(data_ptr, data_ptr + data.size())));
+}
+
void URLLoaderClientImpl::OnTransferSizeUpdated(int32_t transfer_size_diff) {
if (is_deferred_) {
accumulated_transfer_size_diff_during_deferred_ += transfer_size_diff;
« no previous file with comments | « content/child/url_loader_client_impl.h ('k') | content/child/url_loader_client_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698