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 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato
r.h" | 5 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato
r.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
10 #include "base/version.h" | 10 #include "base/version.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 int StepDelay() const override; | 29 int StepDelay() const override; |
30 int OnDemandDelay() const override; | 30 int OnDemandDelay() const override; |
31 int UpdateDelay() const override; | 31 int UpdateDelay() const override; |
32 std::vector<GURL> UpdateUrl() const override; | 32 std::vector<GURL> UpdateUrl() const override; |
33 std::vector<GURL> PingUrl() const override; | 33 std::vector<GURL> PingUrl() const override; |
34 base::Version GetBrowserVersion() const override; | 34 base::Version GetBrowserVersion() const override; |
35 std::string GetChannel() const override; | 35 std::string GetChannel() const override; |
36 std::string GetLang() const override; | 36 std::string GetLang() const override; |
37 std::string GetOSLongName() const override; | 37 std::string GetOSLongName() const override; |
38 std::string ExtraRequestParams() const override; | 38 std::string ExtraRequestParams() const override; |
| 39 std::string GetDownloadPreference() const override; |
39 net::URLRequestContextGetter* RequestContext() const override; | 40 net::URLRequestContextGetter* RequestContext() const override; |
40 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() | 41 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() |
41 const override; | 42 const override; |
42 bool DeltasEnabled() const override; | 43 bool DeltasEnabled() const override; |
43 bool UseBackgroundDownloader() const override; | 44 bool UseBackgroundDownloader() const override; |
44 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 45 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
45 const override; | 46 const override; |
46 | 47 |
47 private: | 48 private: |
48 friend class base::RefCountedThreadSafe<IOSConfigurator>; | 49 friend class base::RefCountedThreadSafe<IOSConfigurator>; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 99 } |
99 | 100 |
100 std::string IOSConfigurator::GetOSLongName() const { | 101 std::string IOSConfigurator::GetOSLongName() const { |
101 return configurator_impl_.GetOSLongName(); | 102 return configurator_impl_.GetOSLongName(); |
102 } | 103 } |
103 | 104 |
104 std::string IOSConfigurator::ExtraRequestParams() const { | 105 std::string IOSConfigurator::ExtraRequestParams() const { |
105 return configurator_impl_.ExtraRequestParams(); | 106 return configurator_impl_.ExtraRequestParams(); |
106 } | 107 } |
107 | 108 |
| 109 std::string IOSConfigurator::GetDownloadPreference() const { |
| 110 return configurator_impl_.GetDownloadPreference(); |
| 111 } |
| 112 |
108 net::URLRequestContextGetter* IOSConfigurator::RequestContext() const { | 113 net::URLRequestContextGetter* IOSConfigurator::RequestContext() const { |
109 return configurator_impl_.RequestContext(); | 114 return configurator_impl_.RequestContext(); |
110 } | 115 } |
111 | 116 |
112 scoped_refptr<update_client::OutOfProcessPatcher> | 117 scoped_refptr<update_client::OutOfProcessPatcher> |
113 IOSConfigurator::CreateOutOfProcessPatcher() const { | 118 IOSConfigurator::CreateOutOfProcessPatcher() const { |
114 return nullptr; | 119 return nullptr; |
115 } | 120 } |
116 | 121 |
117 bool IOSConfigurator::DeltasEnabled() const { | 122 bool IOSConfigurator::DeltasEnabled() const { |
(...skipping 14 matching lines...) Expand all Loading... |
132 | 137 |
133 } // namespace | 138 } // namespace |
134 | 139 |
135 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( | 140 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( |
136 const base::CommandLine* cmdline, | 141 const base::CommandLine* cmdline, |
137 net::URLRequestContextGetter* context_getter) { | 142 net::URLRequestContextGetter* context_getter) { |
138 return new IOSConfigurator(cmdline, context_getter); | 143 return new IOSConfigurator(cmdline, context_getter); |
139 } | 144 } |
140 | 145 |
141 } // namespace component_updater | 146 } // namespace component_updater |
OLD | NEW |