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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // NavigationEntryImpls, we will need to support two versions of Clone: one | 146 // NavigationEntryImpls, we will need to support two versions of Clone: one |
147 // that shares the existing FrameNavigationEntries (for use within the same | 147 // that shares the existing FrameNavigationEntries (for use within the same |
148 // tab) and one that draws them from a different pool (for use in a new tab). | 148 // tab) and one that draws them from a different pool (for use in a new tab). |
149 std::unique_ptr<NavigationEntryImpl> CloneAndReplace( | 149 std::unique_ptr<NavigationEntryImpl> CloneAndReplace( |
150 FrameTreeNode* frame_tree_node, | 150 FrameTreeNode* frame_tree_node, |
151 FrameNavigationEntry* frame_entry) const; | 151 FrameNavigationEntry* frame_entry) const; |
152 | 152 |
153 // Helper functions to construct NavigationParameters for a navigation to this | 153 // Helper functions to construct NavigationParameters for a navigation to this |
154 // NavigationEntry. | 154 // NavigationEntry. |
155 CommonNavigationParams ConstructCommonNavigationParams( | 155 CommonNavigationParams ConstructCommonNavigationParams( |
| 156 const FrameNavigationEntry& frame_entry, |
156 const GURL& dest_url, | 157 const GURL& dest_url, |
157 const Referrer& dest_referrer, | 158 const Referrer& dest_referrer, |
158 FrameMsg_Navigate_Type::Value navigation_type, | 159 FrameMsg_Navigate_Type::Value navigation_type, |
159 LoFiState lofi_state, | 160 LoFiState lofi_state, |
160 const base::TimeTicks& navigation_start) const; | 161 const base::TimeTicks& navigation_start) const; |
161 StartNavigationParams ConstructStartNavigationParams() const; | 162 StartNavigationParams ConstructStartNavigationParams() const; |
162 RequestNavigationParams ConstructRequestNavigationParams( | 163 RequestNavigationParams ConstructRequestNavigationParams( |
163 const FrameNavigationEntry& frame_entry, | 164 const FrameNavigationEntry& frame_entry, |
164 bool is_same_document_history_load, | 165 bool is_same_document_history_load, |
165 bool has_committed_real_load, | 166 bool has_committed_real_load, |
(...skipping 23 matching lines...) Expand all Loading... |
189 // that does not count as a real commit. | 190 // that does not count as a real commit. |
190 void AddOrUpdateFrameEntry(FrameTreeNode* frame_tree_node, | 191 void AddOrUpdateFrameEntry(FrameTreeNode* frame_tree_node, |
191 const std::string& frame_unique_name, | 192 const std::string& frame_unique_name, |
192 int64_t item_sequence_number, | 193 int64_t item_sequence_number, |
193 int64_t document_sequence_number, | 194 int64_t document_sequence_number, |
194 SiteInstanceImpl* site_instance, | 195 SiteInstanceImpl* site_instance, |
195 const GURL& url, | 196 const GURL& url, |
196 const Referrer& referrer, | 197 const Referrer& referrer, |
197 const PageState& page_state, | 198 const PageState& page_state, |
198 const std::string& method, | 199 const std::string& method, |
199 int64_t post_id); | 200 int64_t post_id, |
| 201 scoped_refptr<ResourceRequestBody> post_data); |
200 | 202 |
201 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if | 203 // Returns the FrameNavigationEntry corresponding to |frame_tree_node|, if |
202 // there is one in this NavigationEntry. | 204 // there is one in this NavigationEntry. |
203 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; | 205 FrameNavigationEntry* GetFrameEntry(FrameTreeNode* frame_tree_node) const; |
204 | 206 |
205 // Returns the FrameNavigationEntry corresponding to the frame with the given | 207 // Returns the FrameNavigationEntry corresponding to the frame with the given |
206 // |unique_name|, if any. This is useful when the FrameTreeNode cannot be used | 208 // |unique_name|, if any. This is useful when the FrameTreeNode cannot be used |
207 // to find the entry, such as for a newly created subframe in a history | 209 // to find the entry, such as for a newly created subframe in a history |
208 // navigation. Callers should update the FrameTreeNode ID of the entry so that | 210 // navigation. Callers should update the FrameTreeNode ID of the entry so that |
209 // it can be found with |GetFrameEntry| above. | 211 // it can be found with |GetFrameEntry| above. |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 // persisted, unless specific data is taken out/put back in at save/restore | 504 // persisted, unless specific data is taken out/put back in at save/restore |
503 // time (see TabNavigation for an example of this). | 505 // time (see TabNavigation for an example of this). |
504 std::map<std::string, base::string16> extra_data_; | 506 std::map<std::string, base::string16> extra_data_; |
505 | 507 |
506 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 508 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
507 }; | 509 }; |
508 | 510 |
509 } // namespace content | 511 } // namespace content |
510 | 512 |
511 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 513 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |