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

Unified Diff: content/browser/frame_host/navigation_request.h

Issue 475783002: PlzNavigate: add cancel navigation logic for uncommitted requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/frame_host/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index d8be70ba1bee21c7df45b73a99e291d60ee8f863..fa3d1516d86082012401d4855b3ef73aed1da3de 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -31,10 +31,19 @@ class NavigationRequest {
// manipulated on the UI thread.
void BeginNavigation(scoped_refptr<ResourceRequestBody> body);
+ int64 navigation_request_id() const {
+ return navigation_request_id_;
clamy 2014/08/14 13:19:06 Please write this on one line since it fits: int64
carlosk 2014/08/14 17:07:10 Done.
+ }
+
private:
+ // The next available browser-global navigation request ID.
+ static int64 next_navigation_request_id_;
+
+ const int64 navigation_request_id_;
const NavigationRequestInfo info_;
const int64 frame_node_id_;
+
clamy 2014/08/14 13:19:06 nit: unnecessary blank line.
carlosk 2014/08/14 17:07:10 Done.
DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
};
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | content/browser/frame_host/navigation_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698