OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_RELOAD_TYPE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 // Used to specify detailed behavior on requesting reloads. NONE is used in | 10 // Used to specify detailed behavior on requesting reloads. NONE is used in |
11 // general, but behaviors depend on context. If NONE is used for tab restore, or | 11 // general, but behaviors depend on context. If NONE is used for tab restore, or |
12 // history navigation, it loads preferring cache (which may be stale). | 12 // history navigation, it loads preferring cache (which may be stale). |
13 enum class ReloadType { | 13 enum class ReloadType { |
14 NONE, // Normal load, restore, or history navigation. | 14 // Normal load, restore, or history navigation. |
15 NORMAL, // Reload validating only the main resource. | 15 NONE, |
16 BYPASSING_CACHE, // Reload bypassing the cache (shift-reload). | 16 // Reloads the current entry validating only the main resource. |
17 ORIGINAL_REQUEST_URL, // Reload using the original request URL. | 17 NORMAL, |
18 DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. | 18 // Reloads the current entry bypassing the cache (shift-reload). |
| 19 BYPASSING_CACHE, |
| 20 // Reloads the current entry using the original URL used to create it. This |
| 21 // is used for cases where the user wants to refresh a page using a different |
| 22 // user agent after following a redirect. |
| 23 ORIGINAL_REQUEST_URL, |
| 24 // Reloads the current entry with Lo-Fi mode disabled. |
| 25 DISABLE_LOFI_MODE |
19 }; | 26 }; |
20 | 27 |
21 } // namespace content | 28 } // namespace content |
22 | 29 |
23 #endif // CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ | 30 #endif // CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ |
OLD | NEW |