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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool is_post, 104 bool is_post,
105 const Referrer& sanitized_referrer, 105 const Referrer& sanitized_referrer,
106 bool has_user_gesture, 106 bool has_user_gesture,
107 ui::PageTransition transition, 107 ui::PageTransition transition,
108 bool is_external_protocol) override; 108 bool is_external_protocol) override;
109 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( 109 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting(
110 const GURL& new_url, 110 const GURL& new_url,
111 bool new_method_is_post, 111 bool new_method_is_post,
112 const GURL& new_referrer_url, 112 const GURL& new_referrer_url,
113 bool new_is_external_protocol) override; 113 bool new_is_external_protocol) override;
114 bool IsUsingLofi() override;
115 bool WasFetchedViaDataReductionProxy() override;
114 116
115 NavigatorDelegate* GetDelegate() const; 117 NavigatorDelegate* GetDelegate() const;
116 118
117 // Returns the response headers for the request or nullptr if there are none. 119 // Returns the response headers for the request or nullptr if there are none.
118 // This should only be accessed after a redirect was encountered or after the 120 // This should only be accessed after a redirect was encountered or after the
119 // navigation is ready to commit. The headers returned should not be modified, 121 // navigation is ready to commit. The headers returned should not be modified,
120 // as modifications will not be reflected in the network stack. 122 // as modifications will not be reflected in the network stack.
121 const net::HttpResponseHeaders* GetResponseHeaders(); 123 const net::HttpResponseHeaders* GetResponseHeaders();
122 124
123 void set_net_error_code(net::Error net_error_code) { 125 void set_net_error_code(net::Error net_error_code) {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 bool has_user_gesture_; 244 bool has_user_gesture_;
243 ui::PageTransition transition_; 245 ui::PageTransition transition_;
244 bool is_external_protocol_; 246 bool is_external_protocol_;
245 net::Error net_error_code_; 247 net::Error net_error_code_;
246 RenderFrameHostImpl* render_frame_host_; 248 RenderFrameHostImpl* render_frame_host_;
247 bool is_same_page_; 249 bool is_same_page_;
248 const bool is_synchronous_; 250 const bool is_synchronous_;
249 const bool is_srcdoc_; 251 const bool is_srcdoc_;
250 bool was_redirected_; 252 bool was_redirected_;
251 scoped_refptr<net::HttpResponseHeaders> response_headers_; 253 scoped_refptr<net::HttpResponseHeaders> response_headers_;
252
253 // The state the navigation is in. 254 // The state the navigation is in.
254 State state_; 255 State state_;
255 256
256 // Whether the navigation is in the middle of a transfer. Set to false when 257 // Whether the navigation is in the middle of a transfer. Set to false when
257 // the DidStartProvisionalLoad is received from the new renderer. 258 // the DidStartProvisionalLoad is received from the new renderer.
258 bool is_transferring_; 259 bool is_transferring_;
259 260
260 // The FrameTreeNode this navigation is happening in. 261 // The FrameTreeNode this navigation is happening in.
261 FrameTreeNode* frame_tree_node_; 262 FrameTreeNode* frame_tree_node_;
262 263
263 // A list of Throttles registered for this navigation. 264 // A list of Throttles registered for this navigation.
264 ScopedVector<NavigationThrottle> throttles_; 265 ScopedVector<NavigationThrottle> throttles_;
265 266
266 // The index of the next throttle to check. 267 // The index of the next throttle to check.
267 size_t next_index_; 268 size_t next_index_;
268 269
269 // The time this navigation started. 270 // The time this navigation started.
270 const base::TimeTicks navigation_start_; 271 const base::TimeTicks navigation_start_;
271 272
272 // This callback will be run when all throttle checks have been performed. 273 // This callback will be run when all throttle checks have been performed.
273 ThrottleChecksFinishedCallback complete_callback_; 274 ThrottleChecksFinishedCallback complete_callback_;
274 275
275 // PlzNavigate 276 // PlzNavigate
276 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a 277 // Manages the lifetime of a pre-created ServiceWorkerProviderHost until a
277 // corresponding ServiceWorkerNetworkProvider is created in the renderer. 278 // corresponding ServiceWorkerNetworkProvider is created in the renderer.
278 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_; 279 scoped_ptr<ServiceWorkerNavigationHandle> service_worker_handle_;
279 280
281 bool is_using_lofi_;
bengr 2016/02/26 22:53:57 Add comments.
RyanSturm 2016/03/01 19:36:04 Done.
282 bool was_fetched_via_data_reduction_proxy_;
283
280 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 284 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
281 }; 285 };
282 286
283 } // namespace content 287 } // namespace content
284 288
285 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 289 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698