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

Side by Side Diff: content/browser/frame_host/navigation_entry_impl.h

Issue 2191543003: Remove existing FrameNavigationEntry when new named frame is added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New implementation of FNE clearing. More work needed. Created 4 years, 4 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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if 227 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if
228 // there is one in this NavigationEntry. 228 // there is one in this NavigationEntry.
229 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; 229 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const;
230 230
231 // Removes subframe FrameNavigationEntries below the item corresponding to 231 // Removes subframe FrameNavigationEntries below the item corresponding to
232 // |frame_tree_node| (if any). This is necessary after server redirects 232 // |frame_tree_node| (if any). This is necessary after server redirects
233 // during session history navigations, when the child items no longer apply. 233 // during session history navigations, when the child items no longer apply.
234 void ClearChildren(FrameTreeNode* frame_tree_node); 234 void ClearChildren(FrameTreeNode* frame_tree_node);
235 235
236 // Removes the subframe FrameNavigationEntry matching the unique name of
237 // the |frame_tree_node|, if any, and all of its children.
238 void ClearMatchingFrameEntries(FrameTreeNode* frame_tree_node);
239
236 void set_unique_id(int unique_id) { 240 void set_unique_id(int unique_id) {
237 unique_id_ = unique_id; 241 unique_id_ = unique_id;
238 } 242 }
239 243
240 // The SiteInstance represents which pages must share processes. This is a 244 // The SiteInstance represents which pages must share processes. This is a
241 // reference counted pointer to a shared SiteInstance. 245 // reference counted pointer to a shared SiteInstance.
242 // 246 //
243 // Note that the SiteInstance should usually not be changed after it is set, 247 // Note that the SiteInstance should usually not be changed after it is set,
244 // but this may happen if the NavigationEntry was cloned and needs to use a 248 // but this may happen if the NavigationEntry was cloned and needs to use a
245 // different SiteInstance. 249 // different SiteInstance.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // persisted, unless specific data is taken out/put back in at save/restore 526 // persisted, unless specific data is taken out/put back in at save/restore
523 // time (see TabNavigation for an example of this). 527 // time (see TabNavigation for an example of this).
524 std::map<std::string, base::string16> extra_data_; 528 std::map<std::string, base::string16> extra_data_;
525 529
526 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 530 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
527 }; 531 };
528 532
529 } // namespace content 533 } // namespace content
530 534
531 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 535 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698