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

Side by Side Diff: content/browser/frame_host/navigation_request.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing Header Include 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "content/browser/frame_host/navigation_entry_impl.h" 12 #include "content/browser/frame_host/navigation_entry_impl.h"
13 #include "content/browser/loader/navigation_url_loader_delegate.h" 13 #include "content/browser/loader/navigation_url_loader_delegate.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/frame_message_enums.h" 15 #include "content/common/frame_message_enums.h"
16 #include "content/common/navigation_params.h" 16 #include "content/common/navigation_params.h"
17 #include "content/public/browser/navigation_throttle.h" 17 #include "content/public/browser/navigation_throttle.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class FrameNavigationEntry; 21 class FrameNavigationEntry;
22 class FrameTreeNode; 22 class FrameTreeNode;
23 class NavigationControllerImpl; 23 class NavigationControllerImpl;
24 class NavigationHandleImpl; 24 class NavigationHandleImpl;
25 class NavigationURLLoader; 25 class NavigationURLLoader;
26 class NavigationData;
26 class NavigatorDelegate; 27 class NavigatorDelegate;
27 class ResourceRequestBody; 28 class ResourceRequestBody;
28 class SiteInstanceImpl; 29 class SiteInstanceImpl;
29 struct NavigationRequestInfo; 30 struct NavigationRequestInfo;
30 31
31 // PlzNavigate 32 // PlzNavigate
32 // A UI thread object that owns a navigation request until it commits. It 33 // A UI thread object that owns a navigation request until it commits. It
33 // ensures the UI thread can start a navigation request in the 34 // ensures the UI thread can start a navigation request in the
34 // ResourceDispatcherHost (that lives on the IO thread). 35 // ResourceDispatcherHost (that lives on the IO thread).
35 // TODO(clamy): Describe the interactions between the UI and IO thread during 36 // TODO(clamy): Describe the interactions between the UI and IO thread during
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 const RequestNavigationParams& request_params, 167 const RequestNavigationParams& request_params,
167 scoped_refptr<ResourceRequestBody> body, 168 scoped_refptr<ResourceRequestBody> body,
168 bool browser_initiated, 169 bool browser_initiated,
169 const FrameNavigationEntry* frame_navigation_entry, 170 const FrameNavigationEntry* frame_navigation_entry,
170 const NavigationEntryImpl* navitation_entry); 171 const NavigationEntryImpl* navitation_entry);
171 172
172 // NavigationURLLoaderDelegate implementation. 173 // NavigationURLLoaderDelegate implementation.
173 void OnRequestRedirected( 174 void OnRequestRedirected(
174 const net::RedirectInfo& redirect_info, 175 const net::RedirectInfo& redirect_info,
175 const scoped_refptr<ResourceResponse>& response) override; 176 const scoped_refptr<ResourceResponse>& response) override;
176 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 177 void OnResponseStarted(
177 std::unique_ptr<StreamHandle> body) override; 178 const scoped_refptr<ResourceResponse>& response,
179 std::unique_ptr<StreamHandle> body,
bengr 2016/04/29 21:14:22 Forward declare StreamHandle.
RyanSturm 2016/05/02 19:52:21 Done.
180 std::unique_ptr<NavigationData> navigation_data) override;
178 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; 181 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
179 void OnRequestStarted(base::TimeTicks timestamp) override; 182 void OnRequestStarted(base::TimeTicks timestamp) override;
180 183
181 // Called when the NavigationThrottles have been checked by the 184 // Called when the NavigationThrottles have been checked by the
182 // NavigationHandle. 185 // NavigationHandle.
183 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); 186 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
184 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); 187 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
185 void OnWillProcessResponseChecksComplete( 188 void OnWillProcessResponseChecksComplete(
186 NavigationThrottle::ThrottleCheckResult result); 189 NavigationThrottle::ThrottleCheckResult result);
187 190
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // the WillProcessResponse checks are performed by the NavigationHandle. 238 // the WillProcessResponse checks are performed by the NavigationHandle.
236 scoped_refptr<ResourceResponse> response_; 239 scoped_refptr<ResourceResponse> response_;
237 std::unique_ptr<StreamHandle> body_; 240 std::unique_ptr<StreamHandle> body_;
238 241
239 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 242 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
240 }; 243 };
241 244
242 } // namespace content 245 } // namespace content
243 246
244 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 247 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698