Index: third_party/WebKit/Source/core/loader/LinkLoader.h |
diff --git a/third_party/WebKit/Source/core/loader/LinkLoader.h b/third_party/WebKit/Source/core/loader/LinkLoader.h |
index f67b44638ca6ba45b7d7edf9fa5d1c59750e9a74..1572fda85757406422d2296b2e254cb2e1578d3c 100644 |
--- a/third_party/WebKit/Source/core/loader/LinkLoader.h |
+++ b/third_party/WebKit/Source/core/loader/LinkLoader.h |
@@ -41,6 +41,7 @@ |
#include "platform/PrerenderClient.h" |
#include "platform/Timer.h" |
#include "platform/heap/Handle.h" |
+#include "wtf/Optional.h" |
namespace blink { |
@@ -101,7 +102,8 @@ class CORE_EXPORT LinkLoader final |
CanLoadResources, |
MediaPreloadPolicy, |
ViewportDescriptionWrapper*); |
- static bool getResourceTypeFromAsAttribute(const String& as, Resource::Type&); |
+ static WTF::Optional<Resource::Type> getResourceTypeFromAsAttribute( |
+ const String& as); |
DECLARE_TRACE(); |