diff options
author | sorin <sorin@chromium.org> | 2016-01-26 12:09:40 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-26 20:11:38 +0000 |
commit | 590586cdcb76d893e591e26209a57edb8700568b (patch) | |
tree | a1d4b0654a8124db7b704251093d4cd7733bb06e /components/component_updater | |
parent | 1502388c71f4be18168803d6ec3dac2af90dbaff (diff) | |
download | chromium_src-590586cdcb76d893e591e26209a57edb8700568b.zip chromium_src-590586cdcb76d893e591e26209a57edb8700568b.tar.gz chromium_src-590586cdcb76d893e591e26209a57edb8700568b.tar.bz2 |
Implement Windows GPO support for "dlpref".
This is a feature of the update protocol, which allows the
server to prioritize returning urls that can be cached
by downstream proxies.
BUG=579762
Review URL: https://codereview.chromium.org/1606943007
Cr-Commit-Position: refs/heads/master@{#371576}
Diffstat (limited to 'components/component_updater')
-rw-r--r-- | components/component_updater/configurator_impl.cc | 4 | ||||
-rw-r--r-- | components/component_updater/configurator_impl.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/components/component_updater/configurator_impl.cc b/components/component_updater/configurator_impl.cc index be52913..34097a0 100644 --- a/components/component_updater/configurator_impl.cc +++ b/components/component_updater/configurator_impl.cc @@ -163,6 +163,10 @@ std::string ConfiguratorImpl::ExtraRequestParams() const { return extra_info_; } +std::string ConfiguratorImpl::GetDownloadPreference() const { + return std::string(); +} + net::URLRequestContextGetter* ConfiguratorImpl::RequestContext() const { return url_request_getter_; } diff --git a/components/component_updater/configurator_impl.h b/components/component_updater/configurator_impl.h index 959a9b1..09170d4 100644 --- a/components/component_updater/configurator_impl.h +++ b/components/component_updater/configurator_impl.h @@ -67,6 +67,10 @@ class ConfiguratorImpl { // XML element. std::string ExtraRequestParams() const; + // Provides a hint for the server to control the order in which multiple + // download urls are returned. + std::string GetDownloadPreference() const; + // The source of contexts for all the url requests. net::URLRequestContextGetter* RequestContext() const; |