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

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

Issue 2136873002: Clear child FrameNavigationEntries if a history navigation redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up and disable test in --site-per-process. Created 4 years, 5 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 const GURL& url, 210 const GURL& url,
211 const Referrer& referrer, 211 const Referrer& referrer,
212 const PageState& page_state, 212 const PageState& page_state,
213 const std::string& method, 213 const std::string& method,
214 int64_t post_id); 214 int64_t post_id);
215 215
216 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if 216 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if
217 // there is one in this NavigationEntry. 217 // there is one in this NavigationEntry.
218 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; 218 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const;
219 219
220 // Removes subframe FrameNavigationEntries below the item corresponding to
221 // |frame_tree_node| (if any). This is necessary after server redirects
222 // during session history navigations, when the child items no longer apply.
223 void ClearChildren(FrameTreeNode* frame_tree_node);
224
220 void set_unique_id(int unique_id) { 225 void set_unique_id(int unique_id) {
221 unique_id_ = unique_id; 226 unique_id_ = unique_id;
222 } 227 }
223 228
224 // The SiteInstance represents which pages must share processes. This is a 229 // The SiteInstance represents which pages must share processes. This is a
225 // reference counted pointer to a shared SiteInstance. 230 // reference counted pointer to a shared SiteInstance.
226 // 231 //
227 // Note that the SiteInstance should usually not be changed after it is set, 232 // Note that the SiteInstance should usually not be changed after it is set,
228 // but this may happen if the NavigationEntry was cloned and needs to use a 233 // but this may happen if the NavigationEntry was cloned and needs to use a
229 // different SiteInstance. 234 // different SiteInstance.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 // persisted, unless specific data is taken out/put back in at save/restore 511 // persisted, unless specific data is taken out/put back in at save/restore
507 // time (see TabNavigation for an example of this). 512 // time (see TabNavigation for an example of this).
508 std::map<std::string, base::string16> extra_data_; 513 std::map<std::string, base::string16> extra_data_;
509 514
510 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 515 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
511 }; 516 };
512 517
513 } // namespace content 518 } // namespace content
514 519
515 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 520 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698