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

Unified Diff: content/test/test_navigation_url_loader.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 7 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/public/test/web_contents_tester.h ('k') | content/test/test_navigation_url_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_navigation_url_loader.h
diff --git a/content/test/test_navigation_url_loader.h b/content/test/test_navigation_url_loader.h
index 07cacb3d22415a6c5c7fdbf3afc3631a747b6d84..8edcdfc7aac20b99895def177b61545cc274b43a 100644
--- a/content/test/test_navigation_url_loader.h
+++ b/content/test/test_navigation_url_loader.h
@@ -11,20 +11,21 @@
#include "content/browser/frame_host/navigation_request_info.h"
#include "content/browser/loader/navigation_url_loader.h"
#include "content/common/navigation_params.h"
namespace net {
struct RedirectInfo;
}
namespace content {
+class NavigationData;
class NavigationURLLoaderDelegate;
class StreamHandle;
struct ResourceResponse;
// PlzNavigate
// Test implementation of NavigationURLLoader to simulate the network stack
// response.
class TestNavigationURLLoader
: public NavigationURLLoader,
public base::SupportsWeakPtr<TestNavigationURLLoader> {
@@ -38,21 +39,22 @@ class TestNavigationURLLoader
NavigationRequestInfo* request_info() const { return request_info_.get(); }
void SimulateServerRedirect(const GURL& redirect_url);
void SimulateError(int error_code);
void CallOnRequestRedirected(const net::RedirectInfo& redirect_info,
const scoped_refptr<ResourceResponse>& response);
void CallOnResponseStarted(const scoped_refptr<ResourceResponse>& response,
- std::unique_ptr<StreamHandle> body);
+ std::unique_ptr<StreamHandle> body,
+ std::unique_ptr<NavigationData> navigation_data);
int redirect_count() { return redirect_count_; }
bool response_proceeded() { return response_proceeded_; }
private:
~TestNavigationURLLoader() override;
std::unique_ptr<NavigationRequestInfo> request_info_;
NavigationURLLoaderDelegate* delegate_;
« no previous file with comments | « content/public/test/web_contents_tester.h ('k') | content/test/test_navigation_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698