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

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

Issue 2498433002: Revert of Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)
Patch Set: 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/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index bd508ef9317603d01f03b7d60a3deeb3ec707981..98badf7a667e6bd9775ca3b4631bc86b42863ed0 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -7,9 +7,7 @@
#include <stddef.h>
#include <algorithm>
-#include <string>
#include <utility>
-#include <vector>
#include "base/command_line.h"
#include "base/debug/crash_logging.h"
@@ -284,7 +282,7 @@
// the destination render frame will take ownership, so release ownership of
// the transferring NavigationHandle.
if (transfer_navigation_handle_.get() &&
- transfer_navigation_handle_->GetGlobalRequestID() ==
+ transfer_navigation_handle_->request_id() ==
entry.transferred_global_request_id()) {
// The navigating RenderFrameHost should take ownership of the
// NavigationHandle that came from the transferring RenderFrameHost.
@@ -2273,8 +2271,7 @@
// This ensures the network request will not be destroyed along the pending
// RFH but will persist until it is picked up by the new RFH.
if (transfer_navigation_handle_.get() &&
- transfer_navigation_handle_->GetGlobalRequestID() ==
- transferred_request_id &&
+ transfer_navigation_handle_->request_id() == transferred_request_id &&
new_instance.get() !=
transfer_navigation_handle_->GetRenderFrameHost()
->GetSiteInstance()) {
@@ -2341,7 +2338,7 @@
// We don't need to stop the old renderer or run beforeunload/unload
// handlers, because those have already been done.
DCHECK(transfer_navigation_handle_ &&
- transfer_navigation_handle_->GetGlobalRequestID() ==
+ transfer_navigation_handle_->request_id() ==
transferred_request_id);
} else if (!pending_render_frame_host_->are_navigations_suspended()) {
// If the pending RFH hasn't already been suspended from a previous
@@ -2468,7 +2465,7 @@
}
RenderViewHostImpl* RenderFrameHostManager::GetSwappedOutRenderViewHost(
- SiteInstance* instance) const {
+ SiteInstance* instance) const {
RenderFrameProxyHost* proxy = GetRenderFrameProxyHost(instance);
if (proxy)
return proxy->GetRenderViewHost();
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | content/browser/loader/resource_request_info_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698