OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/chrome_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 #include "flapper_version.h" // nogncheck In SHARED_INTERMEDIATE_DIR. | 79 #include "flapper_version.h" // nogncheck In SHARED_INTERMEDIATE_DIR. |
80 #include "ppapi/shared_impl/ppapi_permissions.h" // nogncheck | 80 #include "ppapi/shared_impl/ppapi_permissions.h" // nogncheck |
81 #endif | 81 #endif |
82 | 82 |
83 #if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS) && \ | 83 #if defined(WIDEVINE_CDM_AVAILABLE) && BUILDFLAG(ENABLE_PEPPER_CDMS) && \ |
84 !defined(WIDEVINE_CDM_IS_COMPONENT) | 84 !defined(WIDEVINE_CDM_IS_COMPONENT) |
85 #define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT | 85 #define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT |
86 #include "chrome/common/widevine_cdm_constants.h" | 86 #include "chrome/common/widevine_cdm_constants.h" |
87 #endif | 87 #endif |
88 | 88 |
89 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | 89 #if BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION) |
90 #include "chrome/common/media/cdm_host_file_path.h" | 90 #include "chrome/common/media/cdm_host_file_path.h" |
91 #endif | 91 #endif |
92 | 92 |
93 #if defined(OS_ANDROID) | 93 #if defined(OS_ANDROID) |
94 #include "chrome/common/chrome_media_client_android.h" | 94 #include "chrome/common/chrome_media_client_android.h" |
95 #endif | 95 #endif |
96 | 96 |
97 namespace { | 97 namespace { |
98 | 98 |
99 #if BUILDFLAG(ENABLE_PLUGINS) | 99 #if BUILDFLAG(ENABLE_PLUGINS) |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 DCHECK(version.IsValid()); | 562 DCHECK(version.IsValid()); |
563 cdms->push_back(content::CdmInfo(kWidevineCdmType, version, cdm_path, | 563 cdms->push_back(content::CdmInfo(kWidevineCdmType, version, cdm_path, |
564 codecs_supported)); | 564 codecs_supported)); |
565 } | 565 } |
566 #endif // defined(WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT) | 566 #endif // defined(WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT) |
567 | 567 |
568 // TODO(jrummell): Add External Clear Key CDM for testing, if it's | 568 // TODO(jrummell): Add External Clear Key CDM for testing, if it's |
569 // available. | 569 // available. |
570 } | 570 } |
571 | 571 |
572 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | 572 #if BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION) |
573 if (cdm_host_file_paths) | 573 if (cdm_host_file_paths) |
574 chrome::AddCdmHostFilePaths(cdm_host_file_paths); | 574 chrome::AddCdmHostFilePaths(cdm_host_file_paths); |
575 #endif | 575 #endif |
576 } | 576 } |
577 | 577 |
578 static const char* const kChromeStandardURLSchemes[] = { | 578 static const char* const kChromeStandardURLSchemes[] = { |
579 extensions::kExtensionScheme, | 579 extensions::kExtensionScheme, |
580 chrome::kChromeNativeScheme, | 580 chrome::kChromeNativeScheme, |
581 chrome::kChromeSearchScheme, | 581 chrome::kChromeSearchScheme, |
582 dom_distiller::kDomDistillerScheme, | 582 dom_distiller::kDomDistillerScheme, |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 if (!origin_trial_policy_) | 709 if (!origin_trial_policy_) |
710 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>(); | 710 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>(); |
711 return origin_trial_policy_.get(); | 711 return origin_trial_policy_.get(); |
712 } | 712 } |
713 | 713 |
714 #if defined(OS_ANDROID) | 714 #if defined(OS_ANDROID) |
715 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { | 715 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { |
716 return new ChromeMediaClientAndroid(); | 716 return new ChromeMediaClientAndroid(); |
717 } | 717 } |
718 #endif // OS_ANDROID | 718 #endif // OS_ANDROID |
OLD | NEW |