| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // or -1 if not found. | 112 // or -1 if not found. |
| 113 int GetEntryIndexWithPageID(content::SiteInstance* instance, | 113 int GetEntryIndexWithPageID(content::SiteInstance* instance, |
| 114 int32 page_id) const; | 114 int32 page_id) const; |
| 115 | 115 |
| 116 // Return the entry with the corresponding instance and page_id, or NULL if | 116 // Return the entry with the corresponding instance and page_id, or NULL if |
| 117 // not found. | 117 // not found. |
| 118 content::NavigationEntryImpl* GetEntryWithPageID( | 118 content::NavigationEntryImpl* GetEntryWithPageID( |
| 119 content::SiteInstance* instance, | 119 content::SiteInstance* instance, |
| 120 int32 page_id) const; | 120 int32 page_id) const; |
| 121 | 121 |
| 122 // Reloads the current entry using the original URL used to create it. This |
| 123 // is used for cases where the user wants to refresh a page using a different |
| 124 // user agent after following a redirect. |
| 125 void ReloadOriginalRequestURL(bool check_for_repost); |
| 126 |
| 122 // Transient entry ----------------------------------------------------------- | 127 // Transient entry ----------------------------------------------------------- |
| 123 | 128 |
| 124 // Adds an entry that is returned by GetActiveEntry(). The entry is | 129 // Adds an entry that is returned by GetActiveEntry(). The entry is |
| 125 // transient: any navigation causes it to be removed and discarded. | 130 // transient: any navigation causes it to be removed and discarded. |
| 126 // The NavigationController becomes the owner of |entry| and deletes it when | 131 // The NavigationController becomes the owner of |entry| and deletes it when |
| 127 // it discards it. This is useful with interstitial page that need to be | 132 // it discards it. This is useful with interstitial page that need to be |
| 128 // represented as an entry, but should go away when the user navigates away | 133 // represented as an entry, but should go away when the user navigates away |
| 129 // from them. | 134 // from them. |
| 130 // Note that adding a transient entry does not change the active contents. | 135 // Note that adding a transient entry does not change the active contents. |
| 131 void AddTransientEntry(content::NavigationEntryImpl* entry); | 136 void AddTransientEntry(content::NavigationEntryImpl* entry); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 static size_t max_entry_count_for_testing_; | 338 static size_t max_entry_count_for_testing_; |
| 334 | 339 |
| 335 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), | 340 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), |
| 336 // NO_RELOAD otherwise. | 341 // NO_RELOAD otherwise. |
| 337 ReloadType pending_reload_; | 342 ReloadType pending_reload_; |
| 338 | 343 |
| 339 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 344 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
| 340 }; | 345 }; |
| 341 | 346 |
| 342 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ | 347 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ |
| OLD | NEW |