diff options
Diffstat (limited to 'Source/WebCore/html/LinkRelAttribute.h')
-rw-r--r-- | Source/WebCore/html/LinkRelAttribute.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Source/WebCore/html/LinkRelAttribute.h b/Source/WebCore/html/LinkRelAttribute.h index fd6fabf31..8e266927e 100644 --- a/Source/WebCore/html/LinkRelAttribute.h +++ b/Source/WebCore/html/LinkRelAttribute.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2011 Google Inc. All rights reserved. + * Copyright (C) 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -29,29 +30,30 @@ * */ -#ifndef LinkRelAttribute_h -#define LinkRelAttribute_h +#pragma once -#include "IconURL.h" +#include <wtf/Forward.h> +#include <wtf/Optional.h> namespace WebCore { +enum class LinkIconType; + struct LinkRelAttribute { -public: - bool m_isStyleSheet; - IconType m_iconType; - bool m_isAlternate; - bool m_isDNSPrefetch; + bool isStyleSheet { false }; + std::optional<LinkIconType> iconType; + bool isAlternate { false }; + bool isDNSPrefetch { false }; + bool isLinkPreload { false }; #if ENABLE(LINK_PREFETCH) - bool m_isLinkPrefetch; - bool m_isLinkSubresource; + bool isLinkPrefetch { false }; + bool isLinkSubresource { false }; #endif LinkRelAttribute(); explicit LinkRelAttribute(const String&); -}; - -} -#endif + static bool isSupported(StringView); +}; +} |