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 <stdint.h> | 8 #include <stdint.h> |
8 #include <string.h> | 9 #include <string.h> |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
13 #include "base/bind.h" | 14 #include "base/bind.h" |
14 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
16 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 scoped_ptr<ComponentInstallerTraits> traits( | 372 scoped_ptr<ComponentInstallerTraits> traits( |
372 new WidevineCdmComponentInstallerTraits); | 373 new WidevineCdmComponentInstallerTraits); |
373 // |cus| will take ownership of |installer| during installer->Register(cus). | 374 // |cus| will take ownership of |installer| during installer->Register(cus). |
374 DefaultComponentInstaller* installer = | 375 DefaultComponentInstaller* installer = |
375 new DefaultComponentInstaller(traits.Pass()); | 376 new DefaultComponentInstaller(traits.Pass()); |
376 installer->Register(cus, base::Closure()); | 377 installer->Register(cus, base::Closure()); |
377 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) | 378 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) |
378 } | 379 } |
379 | 380 |
380 } // namespace component_updater | 381 } // namespace component_updater |
OLD | NEW |