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 11 matching lines...) Expand all Loading... | |
22 #include "base/strings/string_split.h" | 22 #include "base/strings/string_split.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
27 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
28 #include "chrome/common/chrome_constants.h" | 28 #include "chrome/common/chrome_constants.h" |
29 #include "chrome/common/chrome_paths.h" | 29 #include "chrome/common/chrome_paths.h" |
30 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
31 #include "chrome/common/crash_keys.h" | 31 #include "chrome/common/crash_keys.h" |
32 #include "chrome/common/media/cdm_host_file_path.h" | |
jrummell
2017/01/18 21:46:45
This is only needed if BUILDFLAG(ENABLE_PEPPER_CDM
xhwang
2017/01/18 22:29:08
Done.
| |
32 #include "chrome/common/pepper_flash.h" | 33 #include "chrome/common/pepper_flash.h" |
33 #include "chrome/common/secure_origin_whitelist.h" | 34 #include "chrome/common/secure_origin_whitelist.h" |
34 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
35 #include "chrome/grit/common_resources.h" | 36 #include "chrome/grit/common_resources.h" |
36 #include "components/dom_distiller/core/url_constants.h" | 37 #include "components/dom_distiller/core/url_constants.h" |
37 #include "components/version_info/version_info.h" | 38 #include "components/version_info/version_info.h" |
38 #include "content/public/common/cdm_info.h" | 39 #include "content/public/common/cdm_info.h" |
39 #include "content/public/common/content_constants.h" | 40 #include "content/public/common/content_constants.h" |
40 #include "content/public/common/content_switches.h" | 41 #include "content/public/common/content_switches.h" |
41 #include "content/public/common/url_constants.h" | 42 #include "content/public/common/url_constants.h" |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
548 const base::Version version(WIDEVINE_CDM_VERSION_STRING); | 549 const base::Version version(WIDEVINE_CDM_VERSION_STRING); |
549 DCHECK(version.IsValid()); | 550 DCHECK(version.IsValid()); |
550 cdms->push_back(content::CdmInfo(kWidevineCdmType, version, cdm_path, | 551 cdms->push_back(content::CdmInfo(kWidevineCdmType, version, cdm_path, |
551 codecs_supported)); | 552 codecs_supported)); |
552 } | 553 } |
553 #endif // defined(WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT) | 554 #endif // defined(WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT) |
554 | 555 |
555 // TODO(jrummell): Add External Clear Key CDM for testing, if it's available. | 556 // TODO(jrummell): Add External Clear Key CDM for testing, if it's available. |
556 } | 557 } |
557 | 558 |
559 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | |
560 void ChromeContentClient::AddContentDecryptionModuleHostFilePaths( | |
561 std::vector<content::CdmHostFilePath>* cdm_host_file_paths) { | |
562 AddCdmHostFilePaths(cdm_host_file_paths); | |
Greg K
2017/01/19 04:13:07
Not sure, but should this be namespaced? Otherwise
xhwang
2017/01/19 08:30:50
Well, a lot of chrome/ classes (e.g. ChromeContent
Greg K
2017/01/25 06:15:31
Yeah I guess the owners can decide this one, was j
| |
563 } | |
564 #endif | |
565 | |
558 static const char* const kChromeStandardURLSchemes[] = { | 566 static const char* const kChromeStandardURLSchemes[] = { |
559 extensions::kExtensionScheme, | 567 extensions::kExtensionScheme, |
560 chrome::kChromeNativeScheme, | 568 chrome::kChromeNativeScheme, |
561 chrome::kChromeSearchScheme, | 569 chrome::kChromeSearchScheme, |
562 dom_distiller::kDomDistillerScheme, | 570 dom_distiller::kDomDistillerScheme, |
563 #if defined(OS_CHROMEOS) | 571 #if defined(OS_CHROMEOS) |
564 chrome::kCrosScheme, | 572 chrome::kCrosScheme, |
565 #endif | 573 #endif |
566 }; | 574 }; |
567 | 575 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
666 if (!origin_trial_policy_) | 674 if (!origin_trial_policy_) |
667 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>(); | 675 origin_trial_policy_ = base::MakeUnique<ChromeOriginTrialPolicy>(); |
668 return origin_trial_policy_.get(); | 676 return origin_trial_policy_.get(); |
669 } | 677 } |
670 | 678 |
671 #if defined(OS_ANDROID) | 679 #if defined(OS_ANDROID) |
672 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { | 680 media::MediaClientAndroid* ChromeContentClient::GetMediaClientAndroid() { |
673 return new ChromeMediaClientAndroid(); | 681 return new ChromeMediaClientAndroid(); |
674 } | 682 } |
675 #endif // OS_ANDROID | 683 #endif // OS_ANDROID |
OLD | NEW |