#include "content/public/common/pepper_plugin_info.h"
#include "content/public/common/user_agent.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
-#include "url/url_constants.h"
-
#include "third_party/widevine/cdm/stub/widevine_cdm_version.h"
+#include "url/url_constants.h"
-// The following must be after widevine_cdm_version.h.
#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
-// && !defined(WIDEVINE_CDM_IS_COMPONENT)
#include "chrome/common/widevine_cdm_constants.h"
#endif
return plugin;
}
-
#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
-//&& !defined(WIDEVINE_CDM_IS_COMPONENT)
-
content::PepperPluginInfo CreateWidevineCdmInfo(const base::FilePath& path,
const std::string& version) {
content::PepperPluginInfo widevine_cdm;
return widevine_cdm;
}
-
#endif
-// defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) &&
-// !defined(WIDEVINE_CDM_IS_COMPONENT)
-
void ConvertStringWithSeparatorToVector(std::vector<std::string>* vec,
const char* separator,
}
#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
-//&& !defined(WIDEVINE_CDM_IS_COMPONENT)
void AddWidevineCdmFromCommandLine(
std::vector<content::PepperPluginInfo>* plugins) {
auto command_line = base::CommandLine::ForCurrentProcess();
auto widevine_cdm_path = command_line->GetSwitchValueNative(
- switches::kWidevineCdmPath);
+ switches::kWidevineCdmPath);
if (widevine_cdm_path.empty())
return;
return;
auto widevine_cdm_version = command_line->GetSwitchValueASCII(
- switches::kWidevineCdmVersion);
+ switches::kWidevineCdmVersion);
if (widevine_cdm_version.empty())
return;
- plugins->push_back(
- CreateWidevineCdmInfo(base::FilePath(widevine_cdm_path),
- widevine_cdm_version));
+ plugins->push_back(CreateWidevineCdmInfo(base::FilePath(widevine_cdm_path),
+ widevine_cdm_version));
}
#endif
-// defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) &&
-// !defined(WIDEVINE_CDM_IS_COMPONENT)
-
-
AtomContentClient::AtomContentClient() {
}
void AtomContentClient::AddPepperPlugins(
std::vector<content::PepperPluginInfo>* plugins) {
AddPepperFlashFromCommandLine(plugins);
-
- #if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
- //&& !defined(WIDEVINE_CDM_IS_COMPONENT)
+#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS)
AddWidevineCdmFromCommandLine(plugins);
- #endif
+#endif
}
void AtomContentClient::AddServiceWorkerSchemes(
#include "content/public/browser/render_process_host.h"
#include "content/public/common/webplugininfo.h"
#include "content/public/browser/plugin_service.h"
+
using content::PluginService;
using content::WebPluginInfo;
using content::BrowserThread;
bool* is_available,
std::vector<base::string16>* additional_param_names,
std::vector<base::string16>* additional_param_values) {
-
std::vector<WebPluginInfo> plugins;
PluginService::GetInstance()->GetInternalPlugins(&plugins);
}
WidevineCdmMessageFilter::~WidevineCdmMessageFilter() {
-}
\ No newline at end of file
+}