| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const override; | 57 const override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 friend class base::RefCountedThreadSafe<ChromeConfigurator>; | 60 friend class base::RefCountedThreadSafe<ChromeConfigurator>; |
| 61 | 61 |
| 62 ConfiguratorImpl configurator_impl_; | 62 ConfiguratorImpl configurator_impl_; |
| 63 | 63 |
| 64 ~ChromeConfigurator() override {} | 64 ~ChromeConfigurator() override {} |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 // Allows the component updater to use non-encrypted communication with the |
| 68 // update backend. The security of the update checks is enforced using |
| 69 // a custom message signing protocol and it does not depend on using HTTPS. |
| 67 ChromeConfigurator::ChromeConfigurator( | 70 ChromeConfigurator::ChromeConfigurator( |
| 68 const base::CommandLine* cmdline, | 71 const base::CommandLine* cmdline, |
| 69 net::URLRequestContextGetter* url_request_getter) | 72 net::URLRequestContextGetter* url_request_getter) |
| 70 : configurator_impl_(cmdline, url_request_getter) {} | 73 : configurator_impl_(cmdline, url_request_getter, false) {} |
| 71 | 74 |
| 72 int ChromeConfigurator::InitialDelay() const { | 75 int ChromeConfigurator::InitialDelay() const { |
| 73 return configurator_impl_.InitialDelay(); | 76 return configurator_impl_.InitialDelay(); |
| 74 } | 77 } |
| 75 | 78 |
| 76 int ChromeConfigurator::NextCheckDelay() const { | 79 int ChromeConfigurator::NextCheckDelay() const { |
| 77 return configurator_impl_.NextCheckDelay(); | 80 return configurator_impl_.NextCheckDelay(); |
| 78 } | 81 } |
| 79 | 82 |
| 80 int ChromeConfigurator::StepDelay() const { | 83 int ChromeConfigurator::StepDelay() const { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } // namespace | 175 } // namespace |
| 173 | 176 |
| 174 scoped_refptr<update_client::Configurator> | 177 scoped_refptr<update_client::Configurator> |
| 175 MakeChromeComponentUpdaterConfigurator( | 178 MakeChromeComponentUpdaterConfigurator( |
| 176 const base::CommandLine* cmdline, | 179 const base::CommandLine* cmdline, |
| 177 net::URLRequestContextGetter* context_getter) { | 180 net::URLRequestContextGetter* context_getter) { |
| 178 return new ChromeConfigurator(cmdline, context_getter); | 181 return new ChromeConfigurator(cmdline, context_getter); |
| 179 } | 182 } |
| 180 | 183 |
| 181 } // namespace component_updater | 184 } // namespace component_updater |
| OLD | NEW |