Skip to content

Commit 0d5c16f

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedJul 22, 2022
Add a SUPPORTS_LOADING_MODE response header.
The response header is needed for a document to be loaded in a fenced frame: https://developer.chrome.com/docs/privacy-sandbox/fenced-frame/#server-opt-in. RELNOTES=`net`: Added `SUPPORTS_LOADING_MODE` HTTP response header. PiperOrigin-RevId: 462659126
1 parent 0bacca2 commit 0d5c16f

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
 

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

+10
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,16 @@ private ReferrerPolicyValues() {}
365365
*/
366366
public static final String SOURCE_MAP = "SourceMap";
367367

368+
/**
369+
* The HTTP <a href="https://github.com/WICG/nav-speculation/blob/main/opt-in.md">{@code
370+
* Supports-Loading-Mode}</a> header field name. This can be used to specify, for example, <a
371+
* href="https://developer.chrome.com/docs/privacy-sandbox/fenced-frame/#server-opt-in">fenced
372+
* frames</a>.
373+
*
374+
* @since NEXT
375+
*/
376+
public static final String SUPPORTS_LOADING_MODE = "Supports-Loading-Mode";
377+
368378
/**
369379
* The HTTP <a href="http://tools.ietf.org/html/rfc6797#section-6.1">{@code
370380
* Strict-Transport-Security}</a> header field name.

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

+10
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,16 @@ private ReferrerPolicyValues() {}
365365
*/
366366
public static final String SOURCE_MAP = "SourceMap";
367367

368+
/**
369+
* The HTTP <a href="https://github.com/WICG/nav-speculation/blob/main/opt-in.md">{@code
370+
* Supports-Loading-Mode}</a> header field name. This can be used to specify, for example, <a
371+
* href="https://developer.chrome.com/docs/privacy-sandbox/fenced-frame/#server-opt-in">fenced
372+
* frames</a>.
373+
*
374+
* @since NEXT
375+
*/
376+
public static final String SUPPORTS_LOADING_MODE = "Supports-Loading-Mode";
377+
368378
/**
369379
* The HTTP <a href="http://tools.ietf.org/html/rfc6797#section-6.1">{@code
370380
* Strict-Transport-Security}</a> header field name.

0 commit comments

Comments
 (0)