Skip to content

Commit c3bf731

Browse files
mikispagnick-someone
authored andcommitted
Adds constants for Cross-Origin-Embedder-Policy(-Report-Only)? headers ([W3](https://wicg.github.io/cross-origin-embedder-policy/#COEP)).
RELNOTES=Adds constants for `Cross-Origin-Embedder-Policy(-Report-Only)?` headers. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=309944590
1 parent 215b1f0 commit c3bf731

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

android/guava/src/com/google/common/net/HttpHeaders.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,21 @@ private ReferrerPolicyValues() {}
266266
* @since 20.0
267267
*/
268268
public static final String X_WEBKIT_CSP_REPORT_ONLY = "X-WebKit-CSP-Report-Only";
269+
/**
270+
* The HTTP <a href="https://wicg.github.io/cross-origin-embedder-policy/#COEP">{@code
271+
* Cross-Origin-Embedder-Policy}</a> header field name.
272+
*
273+
* @since NEXT
274+
*/
275+
public static final String CROSS_ORIGIN_EMBEDDER_POLICY = "Cross-Origin-Embedder-Policy";
276+
/**
277+
* The HTTP <a href="https://wicg.github.io/cross-origin-embedder-policy/#COEP-RO">{@code
278+
* Cross-Origin-Embedder-Policy-Report-Only}</a> header field name.
279+
*
280+
* @since NEXT
281+
*/
282+
public static final String CROSS_ORIGIN_EMBEDDER_POLICY_REPORT_ONLY =
283+
"Cross-Origin-Embedder-Policy-Report-Only";
269284
/**
270285
* The HTTP Cross-Origin-Opener-Policy header field name.
271286
*

guava/src/com/google/common/net/HttpHeaders.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,21 @@ private ReferrerPolicyValues() {}
266266
* @since 20.0
267267
*/
268268
public static final String X_WEBKIT_CSP_REPORT_ONLY = "X-WebKit-CSP-Report-Only";
269+
/**
270+
* The HTTP <a href="https://wicg.github.io/cross-origin-embedder-policy/#COEP">{@code
271+
* Cross-Origin-Embedder-Policy}</a> header field name.
272+
*
273+
* @since NEXT
274+
*/
275+
public static final String CROSS_ORIGIN_EMBEDDER_POLICY = "Cross-Origin-Embedder-Policy";
276+
/**
277+
* The HTTP <a href="https://wicg.github.io/cross-origin-embedder-policy/#COEP-RO">{@code
278+
* Cross-Origin-Embedder-Policy-Report-Only}</a> header field name.
279+
*
280+
* @since NEXT
281+
*/
282+
public static final String CROSS_ORIGIN_EMBEDDER_POLICY_REPORT_ONLY =
283+
"Cross-Origin-Embedder-Policy-Report-Only";
269284
/**
270285
* The HTTP Cross-Origin-Opener-Policy header field name.
271286
*

0 commit comments

Comments
 (0)