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

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

Issue 2413663003: Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)
Patch Set: Add frame map Created 4 years, 2 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_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index 26bcc63fa8e58fc8673879491aacc14564144169..a663293c6342e6b2f92b97e605de96a08e611bc0 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,15 @@ NavigationData* NavigationHandleImpl::GetNavigationData() {
return navigation_data_.get();
}
+bool NavigationHandleImpl::HasNetworkResponseStarted() const {
+ return state_ >= WILL_PROCESS_RESPONSE;
+}
+
+const GlobalRequestID& NavigationHandleImpl::GetGlobalRequestID() const {
+ DCHECK_GE(state_, WILL_PROCESS_RESPONSE);
+ return request_id_;
+}
+
void NavigationHandleImpl::InitServiceWorkerHandle(
ServiceWorkerContextWrapper* service_worker_context) {
DCHECK(IsBrowserSideNavigationEnabled());

Powered by Google App Engine
This is Rietveld 408576698