| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 return frame_tree_.get(); | 173 return frame_tree_.get(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 // Finds the TreeNode associated with |frame_tree_node_id| to add or update | 176 // Finds the TreeNode associated with |frame_tree_node_id| to add or update |
| 177 // its FrameNavigationEntry. A new FrameNavigationEntry is added if none | 177 // its FrameNavigationEntry. A new FrameNavigationEntry is added if none |
| 178 // exists, or else the existing one (which might be shared with other | 178 // exists, or else the existing one (which might be shared with other |
| 179 // NavigationEntries) is updated with the given parameters. | 179 // NavigationEntries) is updated with the given parameters. |
| 180 // Does nothing if there is no entry already and |url| is about:blank, since | 180 // Does nothing if there is no entry already and |url| is about:blank, since |
| 181 // that does not count as a real commit. | 181 // that does not count as a real commit. |
| 182 void AddOrUpdateFrameEntry(FrameTreeNode* frame_tree_node, | 182 void AddOrUpdateFrameEntry(FrameTreeNode* frame_tree_node, |
| 183 std::string frame_unique_name, |
| 183 int64 item_sequence_number, | 184 int64 item_sequence_number, |
| 184 int64 document_sequence_number, | 185 int64 document_sequence_number, |
| 185 SiteInstanceImpl* site_instance, | 186 SiteInstanceImpl* site_instance, |
| 186 const GURL& url, | 187 const GURL& url, |
| 187 const Referrer& referrer, | 188 const Referrer& referrer, |
| 188 const PageState& page_state); | 189 const PageState& page_state); |
| 189 | 190 |
| 190 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if | 191 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if |
| 191 // there is one in this NavigationEntry. | 192 // there is one in this NavigationEntry. |
| 192 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; | 193 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 // persisted, unless specific data is taken out/put back in at save/restore | 479 // persisted, unless specific data is taken out/put back in at save/restore |
| 479 // time (see TabNavigation for an example of this). | 480 // time (see TabNavigation for an example of this). |
| 480 std::map<std::string, base::string16> extra_data_; | 481 std::map<std::string, base::string16> extra_data_; |
| 481 | 482 |
| 482 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 483 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
| 483 }; | 484 }; |
| 484 | 485 |
| 485 } // namespace content | 486 } // namespace content |
| 486 | 487 |
| 487 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 488 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |