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

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 10870073: Change how NavigationController reloads transient entries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove outdated comment Created 8 years, 4 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 | Annotate | Revision Log
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_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 // Navigates to the specified absolute index. 278 // Navigates to the specified absolute index.
279 virtual void GoToIndex(int index) = 0; 279 virtual void GoToIndex(int index) = 0;
280 280
281 // Navigates to the specified offset from the "current entry". Does nothing if 281 // Navigates to the specified offset from the "current entry". Does nothing if
282 // the offset is out of bounds. 282 // the offset is out of bounds.
283 virtual void GoToOffset(int offset) = 0; 283 virtual void GoToOffset(int offset) = 0;
284 284
285 // Reloads the current entry. If |check_for_repost| is true and the current 285 // Reloads the current entry. If |check_for_repost| is true and the current
286 // entry has POST data the user is prompted to see if they really want to 286 // entry has POST data the user is prompted to see if they really want to
287 // reload the page. In nearly all cases pass in true. 287 // reload the page. In nearly all cases pass in true. If a transient entry
288 // is showing, initiates a new navigation to its URL.
288 virtual void Reload(bool check_for_repost) = 0; 289 virtual void Reload(bool check_for_repost) = 0;
289 290
290 // Like Reload(), but don't use caches (aka "shift-reload"). 291 // Like Reload(), but don't use caches (aka "shift-reload").
291 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; 292 virtual void ReloadIgnoringCache(bool check_for_repost) = 0;
292 293
293 // Removing of entries ------------------------------------------------------- 294 // Removing of entries -------------------------------------------------------
294 295
295 // Removes the entry at the specified |index|. This call dicards any pending 296 // Removes the entry at the specified |index|. This call dicards any pending
296 // and transient entries. If the index is the last committed index, this does 297 // and transient entries. If the index is the last committed index, this does
297 // nothing and returns false. 298 // nothing and returns false.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; 350 virtual void CopyStateFromAndPrune(NavigationController* source) = 0;
350 351
351 // Removes all the entries except the active entry. If there is a new pending 352 // Removes all the entries except the active entry. If there is a new pending
352 // navigation it is preserved. 353 // navigation it is preserved.
353 virtual void PruneAllButActive() = 0; 354 virtual void PruneAllButActive() = 0;
354 }; 355 };
355 356
356 } // namespace content 357 } // namespace content
357 358
358 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 359 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698