| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |