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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2413663003: Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)
Patch Set: Ignore PlzNavigate Created 4 years, 1 month 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_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index b21a57e200289d1e9989e4f85e9bf5007e4cad19..88a015ad88b110a71ece87cec42d6898393fee64 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -4,8 +4,6 @@
#include "content/browser/frame_host/navigation_handle_impl.h"
-#include <utility>
-
#include "base/debug/dump_without_crashing.h"
#include "base/logging.h"
#include "content/browser/browsing_data/clear_site_data_throttle.h"
@@ -371,6 +369,12 @@ NavigationData* NavigationHandleImpl::GetNavigationData() {
return navigation_data_.get();
}
+const GlobalRequestID& NavigationHandleImpl::GetGlobalRequestID() {
+ DCHECK(state_ == WILL_PROCESS_RESPONSE || state_ == DEFERRING_RESPONSE ||
+ state_ == READY_TO_COMMIT);
+ return request_id_;
+}
+
void NavigationHandleImpl::InitServiceWorkerHandle(
ServiceWorkerContextWrapper* service_worker_context) {
DCHECK(IsBrowserSideNavigationEnabled());

Powered by Google App Engine
This is Rietveld 408576698