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

Unified Diff: content/child/test_request_peer.h

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
Index: content/child/test_request_peer.h
diff --git a/content/child/test_request_peer.h b/content/child/test_request_peer.h
index e076b0dcbd5f3662a29d573a59be35e0db0a0adf..fa2d59d7352db2b145d04034fa1bf5e0a6c02ff6 100644
--- a/content/child/test_request_peer.h
+++ b/content/child/test_request_peer.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <memory>
#include <string>
+#include <vector>
#include "base/time/time.h"
#include "content/public/child/request_peer.h"
@@ -36,6 +37,7 @@ class TestRequestPeer : public RequestPeer {
void OnDownloadedData(int len, int encoded_data_length) override;
void OnReceivedData(std::unique_ptr<ReceivedData> data) override;
void OnTransferSizeUpdated(int transfer_size_diff) override;
+ void OnReceivedCachedMetadata(const char* data, int len) override;
void OnCompletedRequest(int error_code,
bool was_ignored_by_handler,
bool stale_copy_in_cache,
@@ -59,6 +61,7 @@ class TestRequestPeer : public RequestPeer {
bool cancel_on_receive_data = false;
bool received_response = false;
+ std::vector<char> cached_metadata;
// Data received. If downloading to file, remains empty.
std::string data;
« no previous file with comments | « content/browser/service_worker/service_worker_fetch_dispatcher.cc ('k') | content/child/test_request_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698