From 44df85a82900867ce4785b0ffced8db20c7e1968 Mon Sep 17 00:00:00 2001 From: Google Java Core Libraries Date: Tue, 1 Mar 2022 08:43:05 -0800 Subject: [PATCH] Add `HttpHeaders` constants for `Sec-CH-Viewport-Width` and `Sec-CH-Viewport-Height`. RELNOTES=`net`: Added `HttpHeaders` constants for `Sec-CH-Viewport-Width` and `Sec-CH-Viewport-Height`. PiperOrigin-RevId: 431695339 --- .../src/com/google/common/net/HttpHeaders.java | 17 ++++++++++++++++- .../src/com/google/common/net/HttpHeaders.java | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/android/guava/src/com/google/common/net/HttpHeaders.java b/android/guava/src/com/google/common/net/HttpHeaders.java index 2ecbfaa8cb48..58090c7ce3fb 100644 --- a/android/guava/src/com/google/common/net/HttpHeaders.java +++ b/android/guava/src/com/google/common/net/HttpHeaders.java @@ -696,7 +696,22 @@ private ReferrerPolicyValues() {} * @since 31.0 */ public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness"; - + /** + * The HTTP {@code + * Sec-CH-Viewport-Width} header field name. + * + * @since NEXT + */ + public static final String SEC_CH_VIEWPORT_WIDTH = "Sec-CH-Viewport-Width"; + /** + * The HTTP {@code + * Sec-CH-Viewport-Height} header field name. + * + * @since NEXT + */ + public static final String SEC_CH_VIEWPORT_HEIGHT = "Sec-CH-Viewport-Height"; /** * The HTTP {@code Sec-Fetch-Dest} * header field name. diff --git a/guava/src/com/google/common/net/HttpHeaders.java b/guava/src/com/google/common/net/HttpHeaders.java index 2ecbfaa8cb48..58090c7ce3fb 100644 --- a/guava/src/com/google/common/net/HttpHeaders.java +++ b/guava/src/com/google/common/net/HttpHeaders.java @@ -696,7 +696,22 @@ private ReferrerPolicyValues() {} * @since 31.0 */ public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness"; - + /** + * The HTTP {@code + * Sec-CH-Viewport-Width} header field name. + * + * @since NEXT + */ + public static final String SEC_CH_VIEWPORT_WIDTH = "Sec-CH-Viewport-Width"; + /** + * The HTTP {@code + * Sec-CH-Viewport-Height} header field name. + * + * @since NEXT + */ + public static final String SEC_CH_VIEWPORT_HEIGHT = "Sec-CH-Viewport-Height"; /** * The HTTP {@code Sec-Fetch-Dest} * header field name.