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

Side by Side Diff: content/browser/frame_host/navigator_impl.cc

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/navigator_impl.h" 5 #include "content/browser/frame_host/navigator_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 entry.ConstructStartNavigationParams(), 399 entry.ConstructStartNavigationParams(),
400 entry.ConstructRequestNavigationParams( 400 entry.ConstructRequestNavigationParams(
401 frame_entry, is_same_document_history_load, 401 frame_entry, is_same_document_history_load,
402 is_history_navigation_in_new_child, 402 is_history_navigation_in_new_child,
403 entry.GetSubframeUniqueNames(frame_tree_node), 403 entry.GetSubframeUniqueNames(frame_tree_node),
404 frame_tree_node->has_committed_real_load(), 404 frame_tree_node->has_committed_real_load(),
405 controller_->GetPendingEntryIndex() == -1, 405 controller_->GetPendingEntryIndex() == -1,
406 controller_->GetIndexOfEntry(&entry), 406 controller_->GetIndexOfEntry(&entry),
407 controller_->GetLastCommittedEntryIndex(), 407 controller_->GetLastCommittedEntryIndex(),
408 controller_->GetEntryCount())); 408 controller_->GetEntryCount()));
409 } else {
410 // No need to navigate again. Just resume the deferred request.
411 dest_render_frame_host->GetProcess()->ResumeDeferredNavigation(
412 entry.transferred_global_request_id());
409 } 413 }
410 } 414 }
411 415
412 // Make sure no code called via RFH::Navigate clears the pending entry. 416 // Make sure no code called via RFH::Navigate clears the pending entry.
413 if (is_pending_entry) 417 if (is_pending_entry)
414 CHECK_EQ(controller_->GetPendingEntry(), &entry); 418 CHECK_EQ(controller_->GetPendingEntry(), &entry);
415 419
416 if (controller_->GetPendingEntryIndex() == -1 && 420 if (controller_->GetPendingEntryIndex() == -1 &&
417 IsRendererDebugURL(dest_url)) { 421 IsRendererDebugURL(dest_url)) {
418 // If the pending entry index is -1 (which means a new navigation rather 422 // If the pending entry index is -1 (which means a new navigation rather
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 if (navigation_handle) 1207 if (navigation_handle)
1204 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID()); 1208 navigation_handle->update_entry_id_for_transfer(entry->GetUniqueID());
1205 1209
1206 controller_->SetPendingEntry(std::move(entry)); 1210 controller_->SetPendingEntry(std::move(entry));
1207 if (delegate_) 1211 if (delegate_)
1208 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL); 1212 delegate_->NotifyChangedNavigationState(content::INVALIDATE_TYPE_URL);
1209 } 1213 }
1210 } 1214 }
1211 1215
1212 } // namespace content 1216 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698