Chromium Code Reviews| Index: Source/core/html/CrossOriginAttribute.h |
| diff --git a/Source/core/html/CrossOriginAttribute.h b/Source/core/html/CrossOriginAttribute.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f23c2abde37ca6efa79fb1e8edbf5620c34f2f01 |
| --- /dev/null |
| +++ b/Source/core/html/CrossOriginAttribute.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CrossOriginAttribute_h |
| +#define CrossOriginAttribute_h |
| + |
| +#include "public/platform/WebCrossOriginAttribute.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +CrossOriginAttributeValue crossOriginAttributeValue(const String& value) |
| +{ |
| + if (value.isNull()) |
| + return CrossOriginAttributeNotSet; |
| + if (equalIgnoringCase(value, "use-credentials")) |
| + return CrossOriginAttributeUseCredentials; |
| + return CrossOriginAttributeAnonymous; |
|
Mike West
2015/05/11 12:53:35
Is this the behavior we current exhibit? That is,
sof
2015/05/11 12:57:30
The invalid value default for the crossorigin attr
|
| +} |
| + |
| +} // namespace blink |
| + |
| +#endif |
| + |
| + |