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

Unified Diff: content/browser/loader/navigation_resource_handler.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_resource_handler.h
diff --git a/content/browser/loader/navigation_resource_handler.h b/content/browser/loader/navigation_resource_handler.h
index b5ba53572ca7fea81276482ac4a9e0519fdac708..cf8fc026bc91bbe9bb8a22d6d25b3ca2f01d0835 100644
--- a/content/browser/loader/navigation_resource_handler.h
+++ b/content/browser/loader/navigation_resource_handler.h
@@ -5,26 +5,29 @@
#ifndef CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_
#define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_
#include "base/macros.h"
#include "content/browser/loader/resource_handler.h"
#include "content/browser/loader/stream_writer.h"
namespace content {
class NavigationURLLoaderImplCore;
+class ResourceDispatcherHostDelegate;
// PlzNavigate: The leaf ResourceHandler used with NavigationURLLoaderImplCore.
class NavigationResourceHandler : public ResourceHandler {
public:
- NavigationResourceHandler(net::URLRequest* request,
- NavigationURLLoaderImplCore* core);
+ NavigationResourceHandler(
+ net::URLRequest* request,
+ NavigationURLLoaderImplCore* core,
+ ResourceDispatcherHostDelegate* resource_dispatcher_host_delegate);
~NavigationResourceHandler() override;
// Called by the loader the cancel the request.
void Cancel();
// Called to the loader to resume a paused redirect.
void FollowRedirect();
// Called to proceed with the response.
void ProceedWithResponse();
@@ -46,17 +49,18 @@ class NavigationResourceHandler : public ResourceHandler {
bool* defer) override;
void OnDataDownloaded(int bytes_downloaded) override;
private:
// Clears |core_| and its reference to the resource handler. After calling
// this, the lifetime of the request is no longer tied to |core_|.
void DetachFromCore();
NavigationURLLoaderImplCore* core_;
StreamWriter writer_;
+ ResourceDispatcherHostDelegate* resource_dispatcher_host_delegate_;
DISALLOW_COPY_AND_ASSIGN(NavigationResourceHandler);
};
} // namespace content
#endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_
« no previous file with comments | « content/browser/frame_host/navigator_impl_unittest.cc ('k') | content/browser/loader/navigation_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698