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 |
80 private: | 84 private: |
81 net::URLRequestContextGetter* url_request_getter_; | 85 net::URLRequestContextGetter* url_request_getter_; |
82 std::string extra_info_; | 86 std::string extra_info_; |
83 GURL url_source_override_; | 87 GURL url_source_override_; |
84 bool fast_update_; | 88 bool fast_update_; |
85 bool pings_enabled_; | 89 bool pings_enabled_; |
86 bool deltas_enabled_; | 90 bool deltas_enabled_; |
87 bool background_downloads_enabled_; | 91 bool background_downloads_enabled_; |
88 | 92 |
89 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); | 93 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); |
90 }; | 94 }; |
91 | 95 |
92 } // namespace component_updater | 96 } // namespace component_updater |
93 | 97 |
94 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 98 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
OLD | NEW |