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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 475783002: PlzNavigate: add cancel navigation logic for uncommitted requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the linking issue. Created 6 years, 4 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/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 269af9215f943228470130f189116c1b93a1381d..0661cdaf5207578272f940c5b92262dfe0bd23db 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -238,11 +238,20 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// elsewhere.
void FinishedWithResourcesForRequest(const net::URLRequest* request_);
+ // PlzNavigate
// Called by NavigationRequest to start a navigation request in the node
// identified by |frame_node_id|.
- void NavigationRequest(const NavigationRequestInfo& info,
- scoped_refptr<ResourceRequestBody> request_body,
- int64 frame_node_id);
+ void StartNavigationRequest(const NavigationRequestInfo& info,
+ scoped_refptr<ResourceRequestBody> request_body,
+ int64 navigation_request_id,
+ int64 frame_node_id);
nasko 2014/08/21 21:53:44 nit: frame_tree_node_id. I missed to add this comm
carlosk 2014/08/22 13:43:03 I'm not sure I understood you... You meant I shoul
nasko 2014/08/22 14:00:34 Yes.
carlosk 2014/08/22 16:54:41 Acknowledged.
+
+ // PlzNavigate
+ // Called by NavigationRequest to cancel a navigation request with the
+ // provided |navigation_request_id| from the node identified by
nasko 2014/08/21 21:53:44 nit: s/from/in/
carlosk 2014/08/22 13:43:03 Done.
+ // |frame_node_id|.
+ void CancelNavigationRequest(int64 navigation_request_id,
+ int64 frame_node_id);
private:
friend class ResourceDispatcherHostTest;

Powered by Google App Engine
This is Rietveld 408576698