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

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

Issue 1029893002: OOPIF: Create subframe FrameNavigationEntries for AUTO_SUBFRAME navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index c7a84de7ff38c08f8db23c1c33af7a462c4c7cd5..6bafd5b8c6b2c82b3faa3efd5e6beb0be9ebadf2 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -408,6 +408,18 @@ void NavigationEntryImpl::ResetForCommit() {
#endif
}
+void NavigationEntryImpl::AddOrUpdateFrameEntry(int64 frame_tree_node_id,
+ SiteInstanceImpl* site_instance,
+ const GURL& url,
+ const Referrer& referrer) {
+ // TODO(creis): Walk tree to find the node to update.
+ // TODO(creis): Only create a new entry if one doesn't exist yet.
+ FrameNavigationEntry* frame_entry =
+ new FrameNavigationEntry(site_instance, url, referrer);
+ root_node()->children.push_back(
+ new NavigationEntryImpl::TreeNode(frame_entry));
+}
+
void NavigationEntryImpl::SetScreenshotPNGData(
scoped_refptr<base::RefCountedBytes> png_data) {
screenshot_ = png_data;

Powered by Google App Engine
This is Rietveld 408576698