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

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

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 48d975520e28b9e28efb987dfe47bf9519c6f080..1ff1269b6e45d175556a79f62c202dff894d8286 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -54,6 +54,7 @@ class ShareableFileReference;
}
namespace content {
+class NavigationURLLoaderCore;
class ResourceContext;
class ResourceDispatcherHostDelegate;
class ResourceMessageDelegate;
@@ -249,20 +250,14 @@ 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 StartNavigationRequest(const NavigationRequestInfo& info,
+ // PlzNavigate: Begins a request for NavigationURLLoader. |loader| is the
+ // loader to attach to the leaf resource handler. Returns true if the request
+ // was started.
+ bool BeginNavigationRequest(ResourceContext* resource_context,
+ int64 frame_tree_node_id,
+ const NavigationRequestInfo& info,
scoped_refptr<ResourceRequestBody> request_body,
- int64 navigation_request_id,
- int64 frame_node_id);
-
- // PlzNavigate
- // Called by NavigationRequest to cancel a navigation request with the
- // provided |navigation_request_id| in the node identified by
- // |frame_node_id|.
- void CancelNavigationRequest(int64 navigation_request_id,
- int64 frame_node_id);
+ NavigationURLLoaderCore* loader);
private:
friend class ResourceDispatcherHostTest;

Powered by Google App Engine
This is Rietveld 408576698