Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: content/browser/web_contents/navigation_controller_impl.h

Issue 10704048: [RDS] Reloads a page using the original request URL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding unit test & removing public function Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698