Index: third_party/WebKit/Source/core/fetch/FetchContext.h |
diff --git a/third_party/WebKit/Source/core/fetch/FetchContext.h b/third_party/WebKit/Source/core/fetch/FetchContext.h |
index 818fef96ec6633237ddeb67de308e493ff3a064a..7711b93299f3cbfcb8d0ed01f9702dede820bdfc 100644 |
--- a/third_party/WebKit/Source/core/fetch/FetchContext.h |
+++ b/third_party/WebKit/Source/core/fetch/FetchContext.h |
@@ -39,6 +39,7 @@ |
#include "platform/heap/Handle.h" |
#include "platform/network/ResourceLoadPriority.h" |
#include "platform/network/ResourceRequest.h" |
+#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
namespace blink { |
@@ -122,13 +123,17 @@ class CORE_EXPORT FetchContext |
virtual bool shouldLoadNewResource(Resource::Type) const { return false; } |
// Called when a resource load is first requested, which may not be when the |
// load actually begins. |
+ // TODO(toyoshim): Consider to use enum. See https://crbug.com/675883. |
virtual void willStartLoadingResource(unsigned long identifier, |
ResourceRequest&, |
- Resource::Type); |
+ Resource::Type, |
+ const AtomicString& fetchInitiatorName, |
+ bool forPreload); |
virtual void didLoadResource(Resource*); |
virtual void addResourceTiming(const ResourceTimingInfo&); |
virtual bool allowImage(bool, const KURL&) const { return false; } |
+ // TODO(toyoshim): Consider to use enum. See https://crbug.com/675883. |
virtual ResourceRequestBlockedReason canRequest( |
Resource::Type, |
const ResourceRequest&, |