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

Unified Diff: content/test/test_navigation_url_loader_delegate.h

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)
Patch Set: . 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
Index: content/test/test_navigation_url_loader_delegate.h
diff --git a/content/test/test_navigation_url_loader_delegate.h b/content/test/test_navigation_url_loader_delegate.h
index ddc14027bb2393c416aa9939db71de4a7dc8fcf4..1916f3f3f8112a3ccdc819dff210ad407a3ae46f 100644
--- a/content/test/test_navigation_url_loader_delegate.h
+++ b/content/test/test_navigation_url_loader_delegate.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "content/browser/loader/navigation_url_loader_delegate.h"
+#include "mojo/public/cpp/system/data_pipe.h"
#include "net/url_request/redirect_info.h"
namespace base {
@@ -56,6 +57,7 @@ class TestNavigationURLLoaderDelegate : public NavigationURLLoaderDelegate {
const scoped_refptr<ResourceResponse>& response) override;
void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
std::unique_ptr<StreamHandle> body,
+ mojo::ScopedDataPipeConsumerHandle consumer_handle,
const SSLStatus& ssl_status,
std::unique_ptr<NavigationData> navigation_data,
const GlobalRequestID& request_id,
@@ -69,6 +71,7 @@ class TestNavigationURLLoaderDelegate : public NavigationURLLoaderDelegate {
scoped_refptr<ResourceResponse> redirect_response_;
scoped_refptr<ResourceResponse> response_;
std::unique_ptr<StreamHandle> body_;
+ mojo::ScopedDataPipeConsumerHandle handle_;
int net_error_;
int on_request_handled_counter_;

Powered by Google App Engine
This is Rietveld 408576698