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

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

Issue 1493403002: Make pull to refresh not perform regular reload (with cache revalidation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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
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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // Navigates to the specified offset from the "current entry". Does nothing if 350 // Navigates to the specified offset from the "current entry". Does nothing if
351 // the offset is out of bounds. 351 // the offset is out of bounds.
352 virtual void GoToOffset(int offset) = 0; 352 virtual void GoToOffset(int offset) = 0;
353 353
354 // Reloads the current entry. If |check_for_repost| is true and the current 354 // Reloads the current entry. If |check_for_repost| is true and the current
355 // entry has POST data the user is prompted to see if they really want to 355 // entry has POST data the user is prompted to see if they really want to
356 // reload the page. In nearly all cases pass in true. If a transient entry 356 // reload the page. In nearly all cases pass in true. If a transient entry
357 // is showing, initiates a new navigation to its URL. 357 // is showing, initiates a new navigation to its URL.
358 virtual void Reload(bool check_for_repost) = 0; 358 virtual void Reload(bool check_for_repost) = 0;
359 359
360 // Like Reload(), but for refreshing page content and may not need to
361 // validate cache content.
362 // TODO(kinuko): Update the comment once we fix the cache validation
363 // behavior.
364 virtual void ReloadToRefreshContent(bool check_for_repost) = 0;
365
360 // Like Reload(), but don't use caches (aka "shift-reload"). 366 // Like Reload(), but don't use caches (aka "shift-reload").
361 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; 367 virtual void ReloadIgnoringCache(bool check_for_repost) = 0;
362 368
363 // Reloads the current entry using the original URL used to create it. This 369 // Reloads the current entry using the original URL used to create it. This
364 // is used for cases where the user wants to refresh a page using a different 370 // is used for cases where the user wants to refresh a page using a different
365 // user agent after following a redirect. 371 // user agent after following a redirect.
366 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; 372 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0;
367 373
368 // Like Reload(), but disables Lo-Fi. 374 // Like Reload(), but disables Lo-Fi.
369 virtual void ReloadDisableLoFi(bool check_for_repost) = 0; 375 virtual void ReloadDisableLoFi(bool check_for_repost) = 0;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 481
476 private: 482 private:
477 // This interface should only be implemented inside content. 483 // This interface should only be implemented inside content.
478 friend class NavigationControllerImpl; 484 friend class NavigationControllerImpl;
479 NavigationController() {} 485 NavigationController() {}
480 }; 486 };
481 487
482 } // namespace content 488 } // namespace content
483 489
484 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 490 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698