diff options
author | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-05 05:07:23 +0000 |
---|---|---|
committer | bengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-05 05:07:23 +0000 |
commit | 3620bbccdc81bc4af00cd68747e45b18c617617c (patch) | |
tree | df2bc1ff4924599c97561d7346fefec3ae9f3eda /chrome/common | |
parent | 0a7465e3c2aec71ebdec2a9569542adc3fbe2f30 (diff) | |
download | chromium_src-3620bbccdc81bc4af00cd68747e45b18c617617c.zip chromium_src-3620bbccdc81bc4af00cd68747e45b18c617617c.tar.gz chromium_src-3620bbccdc81bc4af00cd68747e45b18c617617c.tar.bz2 |
Client Hints
Client Hints can be used as input to proactive content negotiation;
just as the Accept header allowed clients to indicate what formats
they prefer, Client Hints allow clients to indicate a list of device
and agent specific preferences.
See:
https://github.com/igrigorik/http-client-hints/blob/draft2/draft-grigorik-http-client-hints-01.txt
Patched from https://codereview.chromium.org/23654014/, which was
patched from https://codereview.chromium.org/11970002
BUG=170388
CONTRIBUTOR=yoav@yoav.ws
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225425
Review URL: https://codereview.chromium.org/24451003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227178 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 3 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 512c07a..7c4087b 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -567,6 +567,9 @@ const char kEnableBatchedShutdown[] = "enable-batched-shutdown"; // Enables the benchmarking extensions. const char kEnableBenchmarking[] = "enable-benchmarking"; +// Enables client hints, which adds hints about browser state to HTTP requests. +const char kEnableClientHints[] = "enable-client-hints"; + // Enables pushing cloud policy to Chrome using an invalidation service. const char kEnableCloudPolicyPush[] = "enable-cloud-policy-push"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 81a25d1..726293e 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -168,6 +168,7 @@ extern const char kEnableAuthNegotiatePort[]; extern const char kEnableAutologin[]; extern const char kEnableBatchedShutdown[]; extern const char kEnableBenchmarking[]; +extern const char kEnableClientHints[]; extern const char kEnableCloudPolicyPush[]; extern const char kEnableCloudPrintProxy[]; extern const char kEnableComponentCloudPolicy[]; |