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

Unified Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_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: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
index 3b580561e71451187a3602b0430359bcbef16e11..edc473fb2be5d2e41af816fc605d96744a686984 100644
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
@@ -11,24 +11,32 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "chrome/browser/external_protocol/external_protocol_handler.h"
#include "content/public/browser/resource_dispatcher_host_delegate.h"
class DelayedResourceQueue;
class DownloadRequestLimiter;
+namespace content {
+class NavigationData;
+}
+
namespace extensions {
class UserScriptListener;
}
+namespace net {
+class URLRequest;
+}
+
namespace safe_browsing {
class SafeBrowsingService;
}
// Implements ResourceDispatcherHostDelegate. Currently used by the Prerender
// system to abort requests and add to the load flags when a request begins.
class ChromeResourceDispatcherHostDelegate
: public content::ResourceDispatcherHostDelegate {
public:
ChromeResourceDispatcherHostDelegate();
@@ -79,20 +87,22 @@ class ChromeResourceDispatcherHostDelegate
content::ResourceResponse* response,
IPC::Sender* sender) override;
void OnRequestRedirected(const GURL& redirect_url,
net::URLRequest* request,
content::ResourceContext* resource_context,
content::ResourceResponse* response) override;
void RequestComplete(net::URLRequest* url_request) override;
bool ShouldEnableLoFiMode(
const net::URLRequest& url_request,
content::ResourceContext* resource_context) override;
+ content::NavigationData* GetNavigationData(
+ net::URLRequest* request) const override;
// Called on the UI thread. Allows switching out the
// ExternalProtocolHandler::Delegate for testing code.
static void SetExternalProtocolHandlerDelegateForTesting(
ExternalProtocolHandler::Delegate* delegate);
private:
#if defined(ENABLE_EXTENSIONS)
struct StreamTargetInfo {
std::string extension_id;

Powered by Google App Engine
This is Rietveld 408576698