| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 base::Version GetBrowserVersion() const; | 60 base::Version GetBrowserVersion() const; |
| 61 | 61 |
| 62 // Returns the OS's long name like "Windows", "Mac OS X", etc. | 62 // Returns the OS's long name like "Windows", "Mac OS X", etc. |
| 63 std::string GetOSLongName() const; | 63 std::string GetOSLongName() const; |
| 64 | 64 |
| 65 // Parameters added to each url request. It can be empty if none are needed. | 65 // Parameters added to each url request. It can be empty if none are needed. |
| 66 // The return string must be safe for insertion as an attribute in an | 66 // The return string must be safe for insertion as an attribute in an |
| 67 // XML element. | 67 // XML element. |
| 68 std::string ExtraRequestParams() const; | 68 std::string ExtraRequestParams() const; |
| 69 | 69 |
| 70 // Provides a hint for the server to control the order in which multiple |
| 71 // download urls are returned. |
| 72 std::string GetDownloadPreference() const; |
| 73 |
| 70 // The source of contexts for all the url requests. | 74 // The source of contexts for all the url requests. |
| 71 net::URLRequestContextGetter* RequestContext() const; | 75 net::URLRequestContextGetter* RequestContext() const; |
| 72 | 76 |
| 73 // True means that this client can handle delta updates. | 77 // True means that this client can handle delta updates. |
| 74 bool DeltasEnabled() const; | 78 bool DeltasEnabled() const; |
| 75 | 79 |
| 76 // True means that the background downloader can be used for downloading | 80 // True means that the background downloader can be used for downloading |
| 77 // non on-demand components. | 81 // non on-demand components. |
| 78 bool UseBackgroundDownloader() const; | 82 bool UseBackgroundDownloader() const; |
| 79 | 83 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 91 bool deltas_enabled_; | 95 bool deltas_enabled_; |
| 92 bool background_downloads_enabled_; | 96 bool background_downloads_enabled_; |
| 93 bool fallback_to_alt_source_url_enabled_; | 97 bool fallback_to_alt_source_url_enabled_; |
| 94 | 98 |
| 95 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); | 99 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); |
| 96 }; | 100 }; |
| 97 | 101 |
| 98 } // namespace component_updater | 102 } // namespace component_updater |
| 99 | 103 |
| 100 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 104 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
| OLD | NEW |