| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 std::string ExtraRequestParams() const; | 69 std::string ExtraRequestParams() const; |
| 70 | 70 |
| 71 // Provides a hint for the server to control the order in which multiple | 71 // Provides a hint for the server to control the order in which multiple |
| 72 // download urls are returned. | 72 // download urls are returned. |
| 73 std::string GetDownloadPreference() const; | 73 std::string GetDownloadPreference() const; |
| 74 | 74 |
| 75 // The source of contexts for all the url requests. | 75 // The source of contexts for all the url requests. |
| 76 net::URLRequestContextGetter* RequestContext() const; | 76 net::URLRequestContextGetter* RequestContext() const; |
| 77 | 77 |
| 78 // True means that this client can handle delta updates. | 78 // True means that this client can handle delta updates. |
| 79 bool DeltasEnabled() const; | 79 bool EnabledDeltas() const; |
| 80 |
| 81 // True is the component updates are enabled. |
| 82 bool EnabledComponentUpdates() const; |
| 80 | 83 |
| 81 // True means that the background downloader can be used for downloading | 84 // True means that the background downloader can be used for downloading |
| 82 // non on-demand components. | 85 // non on-demand components. |
| 83 bool UseBackgroundDownloader() const; | 86 bool EnabledBackgroundDownloader() const; |
| 84 | 87 |
| 85 // True if signing of update checks is enabled. | 88 // True if signing of update checks is enabled. |
| 86 bool UseCupSigning() const; | 89 bool EnabledCupSigning() const; |
| 87 | 90 |
| 88 private: | 91 private: |
| 89 net::URLRequestContextGetter* url_request_getter_; | 92 net::URLRequestContextGetter* url_request_getter_; |
| 90 std::string extra_info_; | 93 std::string extra_info_; |
| 91 GURL url_source_override_; | 94 GURL url_source_override_; |
| 92 bool fast_update_; | 95 bool fast_update_; |
| 93 bool pings_enabled_; | 96 bool pings_enabled_; |
| 94 bool deltas_enabled_; | 97 bool deltas_enabled_; |
| 95 bool background_downloads_enabled_; | 98 bool background_downloads_enabled_; |
| 96 bool require_encryption_; | 99 bool require_encryption_; |
| 97 | 100 |
| 98 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); | 101 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace component_updater | 104 } // namespace component_updater |
| 102 | 105 |
| 103 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 106 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
| OLD | NEW |