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

Unified Diff: content/browser/loader/navigation_url_loader_impl.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_impl.h
diff --git a/content/browser/loader/navigation_url_loader_impl.h b/content/browser/loader/navigation_url_loader_impl.h
index 51131cc12d0b482c4e567c4bb2c426e6c4f9d504..d3d2d38e713a9898735d6c3c5c561e23450198a9 100644
--- a/content/browser/loader/navigation_url_loader_impl.h
+++ b/content/browser/loader/navigation_url_loader_impl.h
@@ -13,20 +13,21 @@
#include "base/time/time.h"
#include "content/browser/loader/navigation_url_loader.h"
namespace net {
struct RedirectInfo;
}
namespace content {
class NavigationURLLoaderImplCore;
+class NavigationData;
class ServiceWorkerNavigationHandle;
class StreamHandle;
struct ResourceResponse;
class NavigationURLLoaderImpl : public NavigationURLLoader {
public:
// The caller is responsible for ensuring that |delegate| outlives the loader.
NavigationURLLoaderImpl(BrowserContext* browser_context,
std::unique_ptr<NavigationRequestInfo> request_info,
ServiceWorkerNavigationHandle* service_worker_handle,
@@ -39,21 +40,22 @@ class NavigationURLLoaderImpl : public NavigationURLLoader {
private:
friend class NavigationURLLoaderImplCore;
// Notifies the delegate of a redirect.
void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
const scoped_refptr<ResourceResponse>& response);
// Notifies the delegate that the response has started.
void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response,
- std::unique_ptr<StreamHandle> body);
+ std::unique_ptr<StreamHandle> body,
+ std::unique_ptr<NavigationData> navigation_data);
// Notifies the delegate the request failed to return a response.
void NotifyRequestFailed(bool in_cache, int net_error);
// Notifies the delegate the begin navigation request was handled and a
// potential first network request is about to be made.
void NotifyRequestStarted(base::TimeTicks timestamp);
NavigationURLLoaderDelegate* delegate_;
« no previous file with comments | « content/browser/loader/navigation_url_loader_delegate.h ('k') | content/browser/loader/navigation_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698