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

Unified Diff: content/renderer/history_entry.cc

Issue 281653003: DRAFT CL: Add FrameNavigationEntry and track subframe session histories. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 5 years, 9 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
« no previous file with comments | « content/renderer/history_entry.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/history_entry.cc
diff --git a/content/renderer/history_entry.cc b/content/renderer/history_entry.cc
index 7686165f4eea2c131e1cb51a800383429b6277f9..cf98e028b00fb78994275d793577b3344605983d 100644
--- a/content/renderer/history_entry.cc
+++ b/content/renderer/history_entry.cc
@@ -54,6 +54,15 @@ static FrameMap& GetFrameMap() {
return routing_ids_to_internal_frame_ids;
}
+// static
+void HistoryEntry::UpdateFrameMap(uint64_t old_routing_id,
+ uint64_t new_routing_id) {
+ if (GetFrameMap()[old_routing_id]) {
+ GetFrameMap()[new_routing_id] = GetFrameMap()[old_routing_id];
+ GetFrameMap().erase(old_routing_id);
+ }
+}
+
HistoryEntry::HistoryNode* HistoryEntry::HistoryNode::AddChild(
const WebHistoryItem& item,
int64_t frame_id) {
« no previous file with comments | « content/renderer/history_entry.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698