| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/component_updater/chrome_component_updater_configurator
.h" | 5 #include "chrome/browser/component_updater/chrome_component_updater_configurator
.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const override; | 55 const override; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 friend class base::RefCountedThreadSafe<ChromeConfigurator>; | 58 friend class base::RefCountedThreadSafe<ChromeConfigurator>; |
| 59 | 59 |
| 60 ConfiguratorImpl configurator_impl_; | 60 ConfiguratorImpl configurator_impl_; |
| 61 | 61 |
| 62 ~ChromeConfigurator() override {} | 62 ~ChromeConfigurator() override {} |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 // Allows the component updater to use non-encrypted communication with the |
| 66 // update backend. The security of the update checks is enforced using |
| 67 // a custom message signing protocol and it does not depend on using HTTPS. |
| 65 ChromeConfigurator::ChromeConfigurator( | 68 ChromeConfigurator::ChromeConfigurator( |
| 66 const base::CommandLine* cmdline, | 69 const base::CommandLine* cmdline, |
| 67 net::URLRequestContextGetter* url_request_getter) | 70 net::URLRequestContextGetter* url_request_getter) |
| 68 : configurator_impl_(cmdline, url_request_getter) {} | 71 : configurator_impl_(cmdline, url_request_getter, false) {} |
| 69 | 72 |
| 70 int ChromeConfigurator::InitialDelay() const { | 73 int ChromeConfigurator::InitialDelay() const { |
| 71 return configurator_impl_.InitialDelay(); | 74 return configurator_impl_.InitialDelay(); |
| 72 } | 75 } |
| 73 | 76 |
| 74 int ChromeConfigurator::NextCheckDelay() const { | 77 int ChromeConfigurator::NextCheckDelay() const { |
| 75 return configurator_impl_.NextCheckDelay(); | 78 return configurator_impl_.NextCheckDelay(); |
| 76 } | 79 } |
| 77 | 80 |
| 78 int ChromeConfigurator::StepDelay() const { | 81 int ChromeConfigurator::StepDelay() const { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } // namespace | 167 } // namespace |
| 165 | 168 |
| 166 scoped_refptr<update_client::Configurator> | 169 scoped_refptr<update_client::Configurator> |
| 167 MakeChromeComponentUpdaterConfigurator( | 170 MakeChromeComponentUpdaterConfigurator( |
| 168 const base::CommandLine* cmdline, | 171 const base::CommandLine* cmdline, |
| 169 net::URLRequestContextGetter* context_getter) { | 172 net::URLRequestContextGetter* context_getter) { |
| 170 return new ChromeConfigurator(cmdline, context_getter); | 173 return new ChromeConfigurator(cmdline, context_getter); |
| 171 } | 174 } |
| 172 | 175 |
| 173 } // namespace component_updater | 176 } // namespace component_updater |
| OLD | NEW |