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

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

Issue 2544283002: NavigationController: remove ReloadToRefreshContent (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // Navigates to the specified offset from the "current entry". Does nothing if 348 // Navigates to the specified offset from the "current entry". Does nothing if
349 // the offset is out of bounds. 349 // the offset is out of bounds.
350 virtual void GoToOffset(int offset) = 0; 350 virtual void GoToOffset(int offset) = 0;
351 351
352 // Reloads the current entry. If |check_for_repost| is true and the current 352 // Reloads the current entry. If |check_for_repost| is true and the current
353 // entry has POST data the user is prompted to see if they really want to 353 // entry has POST data the user is prompted to see if they really want to
354 // reload the page. In nearly all cases pass in true. If a transient entry 354 // reload the page. In nearly all cases pass in true. If a transient entry
355 // is showing, initiates a new navigation to its URL. 355 // is showing, initiates a new navigation to its URL.
356 virtual void Reload(bool check_for_repost) = 0; 356 virtual void Reload(bool check_for_repost) = 0;
357 357
358 // Like Reload(), but for refreshing page content and may not need to
359 // validate cache content.
360 // TODO(kinuko): Update the comment once we fix the cache validation
361 // behavior.
362 virtual void ReloadToRefreshContent(bool check_for_repost) = 0;
363
364 // Like Reload(), but don't use caches (aka "shift-reload"). 358 // Like Reload(), but don't use caches (aka "shift-reload").
365 virtual void ReloadBypassingCache(bool check_for_repost) = 0; 359 virtual void ReloadBypassingCache(bool check_for_repost) = 0;
366 360
367 // Reloads the current entry using the original URL used to create it. This 361 // Reloads the current entry using the original URL used to create it. This
368 // is used for cases where the user wants to refresh a page using a different 362 // is used for cases where the user wants to refresh a page using a different
369 // user agent after following a redirect. 363 // user agent after following a redirect.
370 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; 364 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0;
371 365
372 // Like Reload(), but disables Lo-Fi. 366 // Like Reload(), but disables Lo-Fi.
373 virtual void ReloadDisableLoFi(bool check_for_repost) = 0; 367 virtual void ReloadDisableLoFi(bool check_for_repost) = 0;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 462
469 private: 463 private:
470 // This interface should only be implemented inside content. 464 // This interface should only be implemented inside content.
471 friend class NavigationControllerImpl; 465 friend class NavigationControllerImpl;
472 NavigationController() {} 466 NavigationController() {}
473 }; 467 };
474 468
475 } // namespace content 469 } // namespace content
476 470
477 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 471 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/NavigationController.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698