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

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

Issue 1975753006: Pull to refresh: Use new reload type RELOAD_MAIN_RESOURCE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #14 and #16 Created 4 years, 7 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
« no previous file with comments | « content/common/frame_message_enums.h ('k') | content/public/common/content_features.cc » ('j') | 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Each NavigationController belongs to one WebContents; each WebContents has 42 // Each NavigationController belongs to one WebContents; each WebContents has
43 // exactly one NavigationController. 43 // exactly one NavigationController.
44 class NavigationController { 44 class NavigationController {
45 public: 45 public:
46 // Note: NO_RELOAD is used in general, but behaviors depend on context. 46 // Note: NO_RELOAD is used in general, but behaviors depend on context.
47 // If it is used for tab restore, or history navigation, it loads preferring 47 // If it is used for tab restore, or history navigation, it loads preferring
48 // cache (which may be stale). 48 // cache (which may be stale).
49 enum ReloadType { 49 enum ReloadType {
50 NO_RELOAD, // Normal load, restore, or history navigation. 50 NO_RELOAD, // Normal load, restore, or history navigation.
51 RELOAD, // Normal (cache-validating) reload. 51 RELOAD, // Normal (cache-validating) reload.
52 RELOAD_MAIN_RESOURCE, // Reload validating only the main resource.
52 RELOAD_BYPASSING_CACHE, // Reload bypassing the cache (shift-reload). 53 RELOAD_BYPASSING_CACHE, // Reload bypassing the cache (shift-reload).
53 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL. 54 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL.
54 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. 55 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled.
55 }; 56 };
56 57
57 // Load type used in LoadURLParams. 58 // Load type used in LoadURLParams.
58 // 59 //
59 // A Java counterpart will be generated for this enum. 60 // A Java counterpart will be generated for this enum.
60 // GENERATED_JAVA_ENUM_PACKAGE: ( 61 // GENERATED_JAVA_ENUM_PACKAGE: (
61 // org.chromium.content_public.browser.navigation_controller) 62 // org.chromium.content_public.browser.navigation_controller)
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 496
496 private: 497 private:
497 // This interface should only be implemented inside content. 498 // This interface should only be implemented inside content.
498 friend class NavigationControllerImpl; 499 friend class NavigationControllerImpl;
499 NavigationController() {} 500 NavigationController() {}
500 }; 501 };
501 502
502 } // namespace content 503 } // namespace content
503 504
504 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 505 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/common/frame_message_enums.h ('k') | content/public/common/content_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698