Chromium Code Reviews| Index: third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h |
| diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h b/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h |
| index a2dea7300360d84b156039c8629594a650be419d..3f8878ce0703b3af3beee204573e0f27471684bf 100644 |
| --- a/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h |
| +++ b/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h |
| @@ -57,7 +57,8 @@ class PLATFORM_EXPORT FetchRequest { |
| }; |
| // TODO(toyoshim): Consider to define an enum for preload options, and use it |
| // instead of bool in this class, FrameFetchContext, and so on. If it is |
| - // reasonable, we try merging m_forPreload and m_linkPreload into one enum |
| + // reasonable, we try merging m_speculativePreload and m_linkPreload into one |
| + // enum |
| // type. See https://crbug.com/675883. |
|
Charlie Harrison
2017/02/05 18:39:11
Move this to previous line.
Yoav Weiss
2017/02/06 09:58:35
ok
|
| struct ResourceWidth { |
| @@ -96,12 +97,12 @@ class PLATFORM_EXPORT FetchRequest { |
| return m_clientHintPreferences; |
| } |
| - bool forPreload() const { return m_forPreload; } |
| - void setForPreload(bool forPreload, double discoveryTime = 0); |
| + bool speculativePreload() const { return m_speculativePreload; } |
| + void setSpeculativePreload(bool speculativePreload, double discoveryTime = 0); |
| double preloadDiscoveryTime() { return m_preloadDiscoveryTime; } |
| - bool isLinkPreload() { return m_linkPreload; } |
| + bool isLinkPreload() const { return m_linkPreload; } |
| void setLinkPreload(bool isLinkPreload) { m_linkPreload = isLinkPreload; } |
| void setContentSecurityCheck( |
| @@ -152,7 +153,7 @@ class PLATFORM_EXPORT FetchRequest { |
| ResourceRequest m_resourceRequest; |
| String m_charset; |
| ResourceLoaderOptions m_options; |
| - bool m_forPreload; |
| + bool m_speculativePreload; |
| bool m_linkPreload; |
| double m_preloadDiscoveryTime; |
| DeferOption m_defer; |