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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // tab) and one that draws them from a different pool (for use in a new tab). | 126 // tab) and one that draws them from a different pool (for use in a new tab). |
127 NavigationEntryImpl* Clone() const; | 127 NavigationEntryImpl* Clone() const; |
128 | 128 |
129 // Helper functions to construct NavigationParameters for a navigation to this | 129 // Helper functions to construct NavigationParameters for a navigation to this |
130 // NavigationEntry. | 130 // NavigationEntry. |
131 CommonNavigationParams ConstructCommonNavigationParams( | 131 CommonNavigationParams ConstructCommonNavigationParams( |
132 FrameMsg_Navigate_Type::Value navigation_type) const; | 132 FrameMsg_Navigate_Type::Value navigation_type) const; |
133 StartNavigationParams ConstructStartNavigationParams() const; | 133 StartNavigationParams ConstructStartNavigationParams() const; |
134 RequestNavigationParams ConstructRequestNavigationParams( | 134 RequestNavigationParams ConstructRequestNavigationParams( |
135 base::TimeTicks navigation_start, | 135 base::TimeTicks navigation_start, |
| 136 bool intended_as_new_entry, |
136 int pending_offset_to_send, | 137 int pending_offset_to_send, |
137 int current_offset_to_send, | 138 int current_offset_to_send, |
138 int current_length_to_send) const; | 139 int current_length_to_send) const; |
139 | 140 |
140 // Once a navigation entry is committed, we should no longer track several | 141 // Once a navigation entry is committed, we should no longer track several |
141 // pieces of non-persisted state, as documented on the members below. | 142 // pieces of non-persisted state, as documented on the members below. |
142 void ResetForCommit(); | 143 void ResetForCommit(); |
143 | 144 |
144 // Exposes the tree of FrameNavigationEntries that make up this joint session | 145 // Exposes the tree of FrameNavigationEntries that make up this joint session |
145 // history item. | 146 // history item. |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 // persisted, unless specific data is taken out/put back in at save/restore | 437 // persisted, unless specific data is taken out/put back in at save/restore |
437 // time (see TabNavigation for an example of this). | 438 // time (see TabNavigation for an example of this). |
438 std::map<std::string, base::string16> extra_data_; | 439 std::map<std::string, base::string16> extra_data_; |
439 | 440 |
440 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 441 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
441 }; | 442 }; |
442 | 443 |
443 } // namespace content | 444 } // namespace content |
444 | 445 |
445 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 446 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |