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

Unified Diff: content/browser/loader/navigation_url_loader_impl_core.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NavigationData final draft before adding tests Created 4 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/browser/loader/navigation_url_loader_impl_core.h
diff --git a/content/browser/loader/navigation_url_loader_impl_core.h b/content/browser/loader/navigation_url_loader_impl_core.h
index 67a2925dc19de4b731fece9cabafcf42112dc0a1..ec57f5c0929078e89d5f56a0448d4d322bdc7419 100644
--- a/content/browser/loader/navigation_url_loader_impl_core.h
+++ b/content/browser/loader/navigation_url_loader_impl_core.h
@@ -13,20 +13,21 @@
namespace net {
class URLRequest;
struct RedirectInfo;
}
namespace content {
class FrameTreeNode;
class NavigationResourceHandler;
+class NavigationData;
class ResourceContext;
class ResourceHandler;
class ResourceRequestBody;
class ServiceWorkerNavigationHandleCore;
class StreamHandle;
struct ResourceResponse;
// The IO-thread counterpart to the NavigationURLLoaderImpl. It lives on the IO
// thread and is owned by the UI-thread NavigationURLLoaderImpl.
// NavigationURLLoaderImplCore interacts with the ResourceDispatcherHost stack
@@ -53,21 +54,22 @@ class NavigationURLLoaderImplCore {
void set_resource_handler(NavigationResourceHandler* resource_handler) {
resource_handler_ = resource_handler;
}
// Notifies |loader_| on the UI thread that the request was redirected.
void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
ResourceResponse* response);
// Notifies |loader_| on the UI thread that the response started.
void NotifyResponseStarted(ResourceResponse* response,
- std::unique_ptr<StreamHandle> body);
+ std::unique_ptr<StreamHandle> body,
+ NavigationData* navigation_data);
// Notifies |loader_| on the UI thread that the request failed.
void NotifyRequestFailed(bool in_cache, int net_error);
private:
base::WeakPtr<NavigationURLLoaderImpl> loader_;
NavigationResourceHandler* resource_handler_;
DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
};

Powered by Google App Engine
This is Rietveld 408576698