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

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

Issue 1846653004: Rename IGNORING_CACHE to BYPASSING_CACHE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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_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 30 matching lines...) Expand all
41 // Each NavigationController belongs to one WebContents; each WebContents has 41 // Each NavigationController belongs to one WebContents; each WebContents has
42 // exactly one NavigationController. 42 // exactly one NavigationController.
43 class NavigationController { 43 class NavigationController {
44 public: 44 public:
45 // Note: NO_RELOAD is used in general, but behaviors depend on context. 45 // Note: NO_RELOAD is used in general, but behaviors depend on context.
46 // If it is used for tab restore, or history navigation, it loads preferring 46 // If it is used for tab restore, or history navigation, it loads preferring
47 // cache (which may be stale). 47 // cache (which may be stale).
48 enum ReloadType { 48 enum ReloadType {
49 NO_RELOAD, // Normal load, restore, or history navigation. 49 NO_RELOAD, // Normal load, restore, or history navigation.
50 RELOAD, // Normal (cache-validating) reload. 50 RELOAD, // Normal (cache-validating) reload.
51 RELOAD_IGNORING_CACHE, // Reload bypassing the cache (shift-reload). 51 RELOAD_BYPASSING_CACHE, // Reload bypassing the cache (shift-reload).
52 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL. 52 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL.
53 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. 53 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled.
54 }; 54 };
55 55
56 // Load type used in LoadURLParams. 56 // Load type used in LoadURLParams.
57 // 57 //
58 // A Java counterpart will be generated for this enum. 58 // A Java counterpart will be generated for this enum.
59 // GENERATED_JAVA_ENUM_PACKAGE: ( 59 // GENERATED_JAVA_ENUM_PACKAGE: (
60 // org.chromium.content_public.browser.navigation_controller) 60 // org.chromium.content_public.browser.navigation_controller)
61 // GENERATED_JAVA_PREFIX_TO_STRIP: LOAD_TYPE_ 61 // GENERATED_JAVA_PREFIX_TO_STRIP: LOAD_TYPE_
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // is showing, initiates a new navigation to its URL. 372 // is showing, initiates a new navigation to its URL.
373 virtual void Reload(bool check_for_repost) = 0; 373 virtual void Reload(bool check_for_repost) = 0;
374 374
375 // Like Reload(), but for refreshing page content and may not need to 375 // Like Reload(), but for refreshing page content and may not need to
376 // validate cache content. 376 // validate cache content.
377 // TODO(kinuko): Update the comment once we fix the cache validation 377 // TODO(kinuko): Update the comment once we fix the cache validation
378 // behavior. 378 // behavior.
379 virtual void ReloadToRefreshContent(bool check_for_repost) = 0; 379 virtual void ReloadToRefreshContent(bool check_for_repost) = 0;
380 380
381 // Like Reload(), but don't use caches (aka "shift-reload"). 381 // Like Reload(), but don't use caches (aka "shift-reload").
382 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; 382 virtual void ReloadBypassingCache(bool check_for_repost) = 0;
383 383
384 // Reloads the current entry using the original URL used to create it. This 384 // Reloads the current entry using the original URL used to create it. This
385 // is used for cases where the user wants to refresh a page using a different 385 // is used for cases where the user wants to refresh a page using a different
386 // user agent after following a redirect. 386 // user agent after following a redirect.
387 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; 387 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0;
388 388
389 // Like Reload(), but disables Lo-Fi. 389 // Like Reload(), but disables Lo-Fi.
390 virtual void ReloadDisableLoFi(bool check_for_repost) = 0; 390 virtual void ReloadDisableLoFi(bool check_for_repost) = 0;
391 391
392 // Removing of entries ------------------------------------------------------- 392 // Removing of entries -------------------------------------------------------
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 493
494 private: 494 private:
495 // This interface should only be implemented inside content. 495 // This interface should only be implemented inside content.
496 friend class NavigationControllerImpl; 496 friend class NavigationControllerImpl;
497 NavigationController() {} 497 NavigationController() {}
498 }; 498 };
499 499
500 } // namespace content 500 } // namespace content
501 501
502 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 502 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698