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

Unified Diff: content/browser/loader/navigation_url_loader_delegate.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
Index: content/browser/loader/navigation_url_loader_delegate.h
diff --git a/content/browser/loader/navigation_url_loader_delegate.h b/content/browser/loader/navigation_url_loader_delegate.h
index 201fa86297e4de6fc08000e304fd9c8296f931a1..6f6cf1db2fbb8c17657ead15f935b5400d15f324 100644
--- a/content/browser/loader/navigation_url_loader_delegate.h
+++ b/content/browser/loader/navigation_url_loader_delegate.h
@@ -10,38 +10,40 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
namespace net {
struct RedirectInfo;
}
namespace content {
+class NavigationData;
class StreamHandle;
struct ResourceResponse;
// PlzNavigate: The delegate interface to NavigationURLLoader.
class CONTENT_EXPORT NavigationURLLoaderDelegate {
public:
// Called when the request is redirected. Call FollowRedirect to continue
// processing the request.
virtual void OnRequestRedirected(
const net::RedirectInfo& redirect_info,
const scoped_refptr<ResourceResponse>& response) = 0;
// Called when the request receives its response. No further calls will be
// made to the delegate. The response body is returned as a stream in
- // |body_stream|.
+ // |body_stream|. |navigation_data| is passed to the NavigationHandle.
virtual void OnResponseStarted(
const scoped_refptr<ResourceResponse>& response,
- std::unique_ptr<StreamHandle> body_stream) = 0;
+ std::unique_ptr<StreamHandle> body_stream,
+ std::unique_ptr<NavigationData> navigation_data) = 0;
// Called if the request fails before receving a response. |net_error| is a
// network error code for the failure. |has_stale_copy_in_cache| is true if
// there is a stale copy of the unreachable page in cache.
virtual void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) = 0;
// Called after the network request has begun on the IO thread at time
// |timestamp|. This is just a thread hop but is used to compare timing
// against the pre-PlzNavigate codepath which didn't start the network request
// until after the renderer was initialized.
« no previous file with comments | « content/browser/loader/navigation_resource_throttle.cc ('k') | content/browser/loader/navigation_url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698