| Index: third_party/WebKit/public/platform/WebFeaturePolicy.h
|
| diff --git a/third_party/WebKit/public/platform/WebFeaturePolicy.h b/third_party/WebKit/public/platform/WebFeaturePolicy.h
|
| index 5b8bdfb1f800fa29abd3846567dcaa32383d6111..cd912a2368bbcdff2df260582dc98e0ea29cf770 100644
|
| --- a/third_party/WebKit/public/platform/WebFeaturePolicy.h
|
| +++ b/third_party/WebKit/public/platform/WebFeaturePolicy.h
|
| @@ -8,6 +8,9 @@
|
| #include "WebSecurityOrigin.h"
|
| #include "WebString.h"
|
| #include "WebVector.h"
|
| +#if INSIDE_BLINK
|
| +#include "wtf/HashSet.h"
|
| +#endif
|
|
|
| namespace blink {
|
|
|
| @@ -61,4 +64,29 @@ using WebParsedFeaturePolicyHeader =
|
|
|
| } // namespace blink
|
|
|
| +#if INSIDE_BLINK
|
| +namespace WTF {
|
| +
|
| +template <>
|
| +struct DefaultHash<blink::WebFeaturePolicyFeature> {
|
| + STATIC_ONLY(DefaultHash);
|
| + using Hash = IntHash<blink::WebFeaturePolicyFeature>;
|
| +};
|
| +
|
| +template <>
|
| +struct HashTraits<blink::WebFeaturePolicyFeature>
|
| + : GenericHashTraits<blink::WebFeaturePolicyFeature> {
|
| + STATIC_ONLY(HashTraits);
|
| + static bool isDeletedValue(const blink::WebFeaturePolicyFeature& value) {
|
| + return value == static_cast<blink::WebFeaturePolicyFeature>(-1);
|
| + }
|
| + static void constructDeletedValue(blink::WebFeaturePolicyFeature& slot,
|
| + bool) {
|
| + slot = static_cast<blink::WebFeaturePolicyFeature>(-1);
|
| + }
|
| +};
|
| +
|
| +} // namespace WTF
|
| +#endif
|
| +
|
| #endif // WebFeaturePolicy_h
|
|
|