| 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 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 const override; | 50 const override; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 friend class base::RefCountedThreadSafe<IOSConfigurator>; | 53 friend class base::RefCountedThreadSafe<IOSConfigurator>; |
| 54 | 54 |
| 55 ConfiguratorImpl configurator_impl_; | 55 ConfiguratorImpl configurator_impl_; |
| 56 | 56 |
| 57 ~IOSConfigurator() override {} | 57 ~IOSConfigurator() override {} |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // Allows the component updater to use non-encrypted communication with the |
| 61 // update backend. The security of the update checks is enforced using |
| 62 // a custom message signing protocol and it does not depend on using HTTPS. |
| 60 IOSConfigurator::IOSConfigurator( | 63 IOSConfigurator::IOSConfigurator( |
| 61 const base::CommandLine* cmdline, | 64 const base::CommandLine* cmdline, |
| 62 net::URLRequestContextGetter* url_request_getter) | 65 net::URLRequestContextGetter* url_request_getter) |
| 63 : configurator_impl_(cmdline, url_request_getter) {} | 66 : configurator_impl_(cmdline, url_request_getter, false) {} |
| 64 | 67 |
| 65 int IOSConfigurator::InitialDelay() const { | 68 int IOSConfigurator::InitialDelay() const { |
| 66 return configurator_impl_.InitialDelay(); | 69 return configurator_impl_.InitialDelay(); |
| 67 } | 70 } |
| 68 | 71 |
| 69 int IOSConfigurator::NextCheckDelay() const { | 72 int IOSConfigurator::NextCheckDelay() const { |
| 70 return configurator_impl_.NextCheckDelay(); | 73 return configurator_impl_.NextCheckDelay(); |
| 71 } | 74 } |
| 72 | 75 |
| 73 int IOSConfigurator::StepDelay() const { | 76 int IOSConfigurator::StepDelay() const { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 154 |
| 152 } // namespace | 155 } // namespace |
| 153 | 156 |
| 154 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( | 157 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( |
| 155 const base::CommandLine* cmdline, | 158 const base::CommandLine* cmdline, |
| 156 net::URLRequestContextGetter* context_getter) { | 159 net::URLRequestContextGetter* context_getter) { |
| 157 return new IOSConfigurator(cmdline, context_getter); | 160 return new IOSConfigurator(cmdline, context_getter); |
| 158 } | 161 } |
| 159 | 162 |
| 160 } // namespace component_updater | 163 } // namespace component_updater |
| OLD | NEW |