| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // or -1 if not found. | 125 // or -1 if not found. |
| 126 int GetEntryIndexWithPageID(content::SiteInstance* instance, | 126 int GetEntryIndexWithPageID(content::SiteInstance* instance, |
| 127 int32 page_id) const; | 127 int32 page_id) const; |
| 128 | 128 |
| 129 // Return the entry with the corresponding instance and page_id, or NULL if | 129 // Return the entry with the corresponding instance and page_id, or NULL if |
| 130 // not found. | 130 // not found. |
| 131 content::NavigationEntryImpl* GetEntryWithPageID( | 131 content::NavigationEntryImpl* GetEntryWithPageID( |
| 132 content::SiteInstance* instance, | 132 content::SiteInstance* instance, |
| 133 int32 page_id) const; | 133 int32 page_id) const; |
| 134 | 134 |
| 135 // Reloads the current entry using the original URL used to create it. This |
| 136 // is used for cases where the user wants to refresh a page using a different |
| 137 // user agent after following a redirect. |
| 138 void ReloadOriginalRequestURL(bool check_for_repost); |
| 139 |
| 135 // Transient entry ----------------------------------------------------------- | 140 // Transient entry ----------------------------------------------------------- |
| 136 | 141 |
| 137 // Adds an entry that is returned by GetActiveEntry(). The entry is | 142 // Adds an entry that is returned by GetActiveEntry(). The entry is |
| 138 // transient: any navigation causes it to be removed and discarded. | 143 // transient: any navigation causes it to be removed and discarded. |
| 139 // The NavigationController becomes the owner of |entry| and deletes it when | 144 // The NavigationController becomes the owner of |entry| and deletes it when |
| 140 // it discards it. This is useful with interstitial page that need to be | 145 // it discards it. This is useful with interstitial page that need to be |
| 141 // represented as an entry, but should go away when the user navigates away | 146 // represented as an entry, but should go away when the user navigates away |
| 142 // from them. | 147 // from them. |
| 143 // Note that adding a transient entry does not change the active contents. | 148 // Note that adding a transient entry does not change the active contents. |
| 144 void AddTransientEntry(content::NavigationEntryImpl* entry); | 149 void AddTransientEntry(content::NavigationEntryImpl* entry); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 static size_t max_entry_count_for_testing_; | 351 static size_t max_entry_count_for_testing_; |
| 347 | 352 |
| 348 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), | 353 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), |
| 349 // NO_RELOAD otherwise. | 354 // NO_RELOAD otherwise. |
| 350 ReloadType pending_reload_; | 355 ReloadType pending_reload_; |
| 351 | 356 |
| 352 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 357 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
| 353 }; | 358 }; |
| 354 | 359 |
| 355 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ | 360 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ |
| OLD | NEW |