summaryrefslogtreecommitdiff
path: root/chromium/net/base/features.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/base/features.h')
-rw-r--r--chromium/net/base/features.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/net/base/features.h b/chromium/net/base/features.h
index 2e01ea82033..b97d7dd4ddf 100644
--- a/chromium/net/base/features.h
+++ b/chromium/net/base/features.h
@@ -339,6 +339,15 @@ NET_EXPORT extern const base::Feature kNoCookieChangeNotificationOnLoad;
NET_EXPORT extern const base::Feature kDocumentReporting;
#endif // BUILDFLAG(ENABLE_REPORTING)
+#if defined(OS_POSIX) || defined(OS_FUCHSIA)
+// When enabled, UDPSocketPosix increments the global counter of bytes received
+// every time bytes are received, instead of using a timer to batch updates.
+// This should reduce the number of wake ups and improve battery consumption.
+// TODO(https://crbug.com/1189805): Cleanup the feature after verifying that it
+// doesn't negatively affect performance.
+NET_EXPORT extern const base::Feature kUdpSocketPosixAlwaysUpdateBytesReceived;
+#endif // defined(OS_POSIX) || defined(OS_FUCHSIA)
+
// When this feature is enabled, redirected requests will be considered
// cross-site for the purpose of SameSite cookies if any redirect hop was
// cross-site to the target URL, even if the original initiator of the