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

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: making NavigationData const after clone 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;
30 class StreamHandle;
nasko 2016/05/09 17:35:43 Why is this needed? How did the file compile befor
RyanSturm 2016/05/09 18:27:31 navigation_url_loader_delegate.h is one header tha
29 struct NavigationRequestInfo; 31 struct NavigationRequestInfo;
30 32
31 // PlzNavigate 33 // PlzNavigate
32 // A UI thread object that owns a navigation request until it commits. It 34 // 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 35 // ensures the UI thread can start a navigation request in the
34 // ResourceDispatcherHost (that lives on the IO thread). 36 // ResourceDispatcherHost (that lives on the IO thread).
35 // TODO(clamy): Describe the interactions between the UI and IO thread during 37 // TODO(clamy): Describe the interactions between the UI and IO thread during
36 // the navigation following its refactoring. 38 // the navigation following its refactoring.
37 class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate { 39 class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
38 public: 40 public:
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 const RequestNavigationParams& request_params, 168 const RequestNavigationParams& request_params,
167 scoped_refptr<ResourceRequestBody> body, 169 scoped_refptr<ResourceRequestBody> body,
168 bool browser_initiated, 170 bool browser_initiated,
169 const FrameNavigationEntry* frame_navigation_entry, 171 const FrameNavigationEntry* frame_navigation_entry,
170 const NavigationEntryImpl* navitation_entry); 172 const NavigationEntryImpl* navitation_entry);
171 173
172 // NavigationURLLoaderDelegate implementation. 174 // NavigationURLLoaderDelegate implementation.
173 void OnRequestRedirected( 175 void OnRequestRedirected(
174 const net::RedirectInfo& redirect_info, 176 const net::RedirectInfo& redirect_info,
175 const scoped_refptr<ResourceResponse>& response) override; 177 const scoped_refptr<ResourceResponse>& response) override;
176 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 178 void OnResponseStarted(
177 std::unique_ptr<StreamHandle> body) override; 179 const scoped_refptr<ResourceResponse>& response,
180 std::unique_ptr<StreamHandle> body,
181 std::unique_ptr<const NavigationData> navigation_data) override;
nasko 2016/05/09 17:35:43 Why do we need const here? content/ can't really c
RyanSturm 2016/05/09 18:27:31 Agreed. this was a constraint of trying to clarify
178 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; 182 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
179 void OnRequestStarted(base::TimeTicks timestamp) override; 183 void OnRequestStarted(base::TimeTicks timestamp) override;
180 184
181 // Called when the NavigationThrottles have been checked by the 185 // Called when the NavigationThrottles have been checked by the
182 // NavigationHandle. 186 // NavigationHandle.
183 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); 187 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
184 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); 188 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
185 void OnWillProcessResponseChecksComplete( 189 void OnWillProcessResponseChecksComplete(
186 NavigationThrottle::ThrottleCheckResult result); 190 NavigationThrottle::ThrottleCheckResult result);
187 191
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // the WillProcessResponse checks are performed by the NavigationHandle. 239 // the WillProcessResponse checks are performed by the NavigationHandle.
236 scoped_refptr<ResourceResponse> response_; 240 scoped_refptr<ResourceResponse> response_;
237 std::unique_ptr<StreamHandle> body_; 241 std::unique_ptr<StreamHandle> body_;
238 242
239 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 243 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
240 }; 244 };
241 245
242 } // namespace content 246 } // namespace content
243 247
244 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 248 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698