Chromium Code Reviews| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 subframe FrameNavigationEntry matching the |frame_unique_name| and | |
|
Charlie Reis
2016/07/27 22:48:28
nit: Removes the
nit: ... |frame_unique_name|, if
nasko
2016/07/29 15:52:22
What does documenting this here give us? It will b
Charlie Reis
2016/07/29 17:21:35
I think it matters for potential callers of the me
nasko
2016/08/01 20:42:15
Done.
| |
| 237 // all of its children. | |
| 238 void ClearNamedFrameEntries(const std::string& frame_unique_name); | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |