OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
6 #define COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // The source of contexts for all the url requests. | 70 // The source of contexts for all the url requests. |
71 net::URLRequestContextGetter* RequestContext() const; | 71 net::URLRequestContextGetter* RequestContext() const; |
72 | 72 |
73 // True means that this client can handle delta updates. | 73 // True means that this client can handle delta updates. |
74 bool DeltasEnabled() const; | 74 bool DeltasEnabled() const; |
75 | 75 |
76 // True means that the background downloader can be used for downloading | 76 // True means that the background downloader can be used for downloading |
77 // non on-demand components. | 77 // non on-demand components. |
78 bool UseBackgroundDownloader() const; | 78 bool UseBackgroundDownloader() const; |
79 | 79 |
80 // Setting this to false means that we'll only use secure transport (eg https) | |
81 // for update/ping urls. This is already false by default everywhere but older | |
82 // versions of Windows XP. | |
83 void set_enable_alt_source_url(bool enable_alt_source_url); | |
84 | |
85 private: | 80 private: |
86 net::URLRequestContextGetter* url_request_getter_; | 81 net::URLRequestContextGetter* url_request_getter_; |
87 std::string extra_info_; | 82 std::string extra_info_; |
88 GURL url_source_override_; | 83 GURL url_source_override_; |
89 bool fast_update_; | 84 bool fast_update_; |
90 bool pings_enabled_; | 85 bool pings_enabled_; |
91 bool deltas_enabled_; | 86 bool deltas_enabled_; |
92 bool background_downloads_enabled_; | 87 bool background_downloads_enabled_; |
93 bool fallback_to_alt_source_url_enabled_; | |
94 | 88 |
95 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); | 89 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); |
96 }; | 90 }; |
97 | 91 |
98 } // namespace component_updater | 92 } // namespace component_updater |
99 | 93 |
100 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 94 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
OLD | NEW |