Better remove HistoryNodes
commit740b2ff5e2da9041c3d3e80cb612c82e27d15300
authorjaphet <japhet@chromium.org>
Tue, 2 Jun 2015 00:46:08 +0000 (1 17:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Jun 2015 00:46:30 +0000 (2 00:46 +0000)
tree06dd23ed3c3070f73b2616b186419731596dcd4f
parent71dfd3a76672398a8d14c2e971cedc6de5d1183a
Better remove HistoryNodes

Clean up some technical debt related to removing children. Currently we do an expensive traversal to clear the unique name and frame id maps of stale references to children being removed. Stash some state on HistoryNodes to make it faster and more readable.

Review URL: https://codereview.chromium.org/1138543002

Cr-Commit-Position: refs/heads/master@{#332272}
content/common/page_state_serialization.cc
content/common/page_state_serialization.h
content/common/page_state_serialization_unittest.cc
content/renderer/history_controller.cc
content/renderer/history_entry.cc
content/renderer/history_entry.h
content/renderer/history_serialization.cc
content/test/data/page_state/serialized_v22.dat [new file with mode: 0644]