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