| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/widevine_cdm_component_installer.h" | 5 #include "chrome/browser/component_updater/widevine_cdm_component_installer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 std::unique_ptr<base::DictionaryValue> manifest); | 274 std::unique_ptr<base::DictionaryValue> manifest); |
| 275 | 275 |
| 276 DISALLOW_COPY_AND_ASSIGN(WidevineCdmComponentInstallerTraits); | 276 DISALLOW_COPY_AND_ASSIGN(WidevineCdmComponentInstallerTraits); |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 WidevineCdmComponentInstallerTraits::WidevineCdmComponentInstallerTraits() { | 279 WidevineCdmComponentInstallerTraits::WidevineCdmComponentInstallerTraits() { |
| 280 } | 280 } |
| 281 | 281 |
| 282 bool WidevineCdmComponentInstallerTraits:: | 282 bool WidevineCdmComponentInstallerTraits:: |
| 283 SupportsGroupPolicyEnabledComponentUpdates() const { | 283 SupportsGroupPolicyEnabledComponentUpdates() const { |
| 284 return false; | 284 return true; |
| 285 } | 285 } |
| 286 | 286 |
| 287 bool WidevineCdmComponentInstallerTraits::RequiresNetworkEncryption() const { | 287 bool WidevineCdmComponentInstallerTraits::RequiresNetworkEncryption() const { |
| 288 return false; | 288 return false; |
| 289 } | 289 } |
| 290 | 290 |
| 291 bool WidevineCdmComponentInstallerTraits::OnCustomInstall( | 291 bool WidevineCdmComponentInstallerTraits::OnCustomInstall( |
| 292 const base::DictionaryValue& manifest, | 292 const base::DictionaryValue& manifest, |
| 293 const base::FilePath& install_dir) { | 293 const base::FilePath& install_dir) { |
| 294 return true; | 294 return true; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 std::unique_ptr<ComponentInstallerTraits> traits( | 414 std::unique_ptr<ComponentInstallerTraits> traits( |
| 415 new WidevineCdmComponentInstallerTraits); | 415 new WidevineCdmComponentInstallerTraits); |
| 416 // |cus| will take ownership of |installer| during installer->Register(cus). | 416 // |cus| will take ownership of |installer| during installer->Register(cus). |
| 417 DefaultComponentInstaller* installer = | 417 DefaultComponentInstaller* installer = |
| 418 new DefaultComponentInstaller(std::move(traits)); | 418 new DefaultComponentInstaller(std::move(traits)); |
| 419 installer->Register(cus, base::Closure()); | 419 installer->Register(cus, base::Closure()); |
| 420 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) | 420 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) |
| 421 } | 421 } |
| 422 | 422 |
| 423 } // namespace component_updater | 423 } // namespace component_updater |
| OLD | NEW |