Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Unified Diff: Source/core/html/CrossOriginAttribute.h

Issue 1138743002: Added <link rel=preconnect> crossorigin attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+
+

Powered by Google App Engine
This is Rietveld 408576698