| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/renderer/media/chrome_key_systems.h" | 5 #include "chrome/renderer/media/chrome_key_systems.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/common/render_messages.h" | 14 #include "chrome/common/render_messages.h" |
| 15 #include "content/public/renderer/render_thread.h" | 15 #include "content/public/renderer/render_thread.h" |
| 16 | 16 |
| 17 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. | 17 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
| 18 | 18 |
| 19 // The following must be after widevine_cdm_version.h. | 19 // The following must be after widevine_cdm_version.h. |
| 20 | 20 |
| 21 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_MIN_GLIBC_VERSION) | 21 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_MIN_GLIBC_VERSION) |
| 22 #include <gnu/libc-version.h> | 22 #include <gnu/libc-version.h> |
| 23 #include "base/version.h" | 23 #include "base/version.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #if defined(OS_ANDROID) | 26 #if defined(OS_ANDROID) |
| 27 #include "chrome/common/encrypted_media_messages_android.h" | 27 #include "content/common/media/encrypted_media_messages_android.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 using content::KeySystemInfo; | 30 using content::KeySystemInfo; |
| 31 | 31 |
| 32 const char kAudioWebM[] = "audio/webm"; | 32 const char kAudioWebM[] = "audio/webm"; |
| 33 const char kVideoWebM[] = "video/webm"; | 33 const char kVideoWebM[] = "video/webm"; |
| 34 const char kVorbis[] = "vorbis"; | 34 const char kVorbis[] = "vorbis"; |
| 35 const char kVP8[] = "vp8"; | 35 const char kVP8[] = "vp8"; |
| 36 const char kVP80[] = "vp8.0"; | 36 const char kVP80[] = "vp8.0"; |
| 37 | 37 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 #endif | 349 #endif |
| 350 | 350 |
| 351 #if defined(WIDEVINE_CDM_AVAILABLE) | 351 #if defined(WIDEVINE_CDM_AVAILABLE) |
| 352 #if defined(ENABLE_PEPPER_CDMS) | 352 #if defined(ENABLE_PEPPER_CDMS) |
| 353 AddPepperBasedWidevine(key_systems_info); | 353 AddPepperBasedWidevine(key_systems_info); |
| 354 #elif defined(OS_ANDROID) | 354 #elif defined(OS_ANDROID) |
| 355 AddAndroidWidevine(key_systems_info); | 355 AddAndroidWidevine(key_systems_info); |
| 356 #endif | 356 #endif |
| 357 #endif | 357 #endif |
| 358 } | 358 } |
| OLD | NEW |