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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created a DRP PageLoadMetricsObserver Created 4 years, 10 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/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index facb4f83ce37e8bc502dec06c298ab08c5291727..e9493271e4954498546ddb40a1a6ba82cf02a235 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -104,20 +104,22 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
bool is_post,
const Referrer& sanitized_referrer,
bool has_user_gesture,
ui::PageTransition transition,
bool is_external_protocol) override;
NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting(
const GURL& new_url,
bool new_method_is_post,
const GURL& new_referrer_url,
bool new_is_external_protocol) override;
+ bool IsUsingLofi() const override;
+ bool UsedDataReductionProxy() const override;
NavigatorDelegate* GetDelegate() const;
// Returns the response headers for the request or nullptr if there are none.
// This should only be accessed after a redirect was encountered or after the
// navigation is ready to commit. The headers returned should not be modified,
// as modifications will not be reflected in the network stack.
const net::HttpResponseHeaders* GetResponseHeaders();
void set_net_error_code(net::Error net_error_code) {
@@ -242,21 +244,20 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
bool has_user_gesture_;
ui::PageTransition transition_;
bool is_external_protocol_;
net::Error net_error_code_;
RenderFrameHostImpl* render_frame_host_;
bool is_same_page_;
const bool is_synchronous_;
const bool is_srcdoc_;
bool was_redirected_;
scoped_refptr<net::HttpResponseHeaders> response_headers_;
-
// The state the navigation is in.
State state_;
// Whether the navigation is in the middle of a transfer. Set to false when
// the DidStartProvisionalLoad is received from the new renderer.
bool is_transferring_;
// The FrameTreeNode this navigation is happening in.
FrameTreeNode* frame_tree_node_;
@@ -270,16 +271,22 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
const base::TimeTicks navigation_start_;
// This callback will be run when all throttle checks have been performed.
ThrottleChecksFinishedCallback complete_callback_;
// PlzNavigate
// Manages the lifetime of a pre-created ServiceWorkerProviderHost until a
// corresponding ServiceWorkerNetworkProvider is created in the renderer.
scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_;
+ // True if the navigation used lofi.
+ bool is_using_lofi_;
+
+ // True if the navigation was proxied through the data reduction proxy.
+ bool used_data_reduction_proxy_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
};
} // namespace content
#endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698