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

Unified Diff: content/child/test_request_peer.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/test_request_peer.h ('k') | content/child/url_loader_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/test_request_peer.cc
diff --git a/content/child/test_request_peer.cc b/content/child/test_request_peer.cc
index 47add960f213df15dd5ea5eaa7ec9c1aa6ccf277..17f27adc9fae06916875d403b4b1f1168c6761bd 100644
--- a/content/child/test_request_peer.cc
+++ b/content/child/test_request_peer.cc
@@ -72,6 +72,14 @@ void TestRequestPeer::OnTransferSizeUpdated(int transfer_size_diff) {
dispatcher_->SetDefersLoading(context_->request_id, true);
}
+void TestRequestPeer::OnReceivedCachedMetadata(const char* data, int len) {
+ EXPECT_TRUE(context_->received_response);
+ EXPECT_FALSE(context_->complete);
+ if (context_->cancelled)
+ return;
+ context_->cached_metadata = std::vector<char>(data, data + len);
+}
+
void TestRequestPeer::OnCompletedRequest(int error_code,
bool was_ignored_by_handler,
bool stale_copy_in_cache,
« no previous file with comments | « content/child/test_request_peer.h ('k') | content/child/url_loader_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698