michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: package org.mozilla.pfs; michael@0: michael@0: public class PluginFinderService { michael@0: michael@0: public org.mozilla.pfs.PluginInfo getPluginInfo(java.lang.String aMimetype, java.lang.String aClientOS, java.lang.String aLocale) { michael@0: org.mozilla.pfs.PluginInfo response = new org.mozilla.pfs.PluginInfo(); michael@0: michael@0: if (aMimetype.equals("application/x-shockwave-flash")) { michael@0: response.setPid(1); michael@0: response.setName("Flash Player"); michael@0: response.setVersion("7"); michael@0: response.setIconUrl("http://goat.austin.ibm.com:8080/flash.gif"); michael@0: response.setXPILocation("http://www.nexgenmedia.net/flashlinux/flash-linux.xpi"); michael@0: response.setInstallerShowsUI(false); michael@0: response.setManualInstallationURL(""); michael@0: response.setLicenseURL(""); michael@0: } else if (aMimetype.equals("application/x-mtx")) { michael@0: response.setPid(2); michael@0: response.setName("Viewpoint Media Player"); michael@0: response.setVersion("5"); michael@0: response.setIconUrl(null); michael@0: response.setXPILocation("http://www.nexgenmedia.net/flashlinux/invalid.xpi"); michael@0: response.setInstallerShowsUI(false); michael@0: response.setManualInstallationURL("http://www.viewpoint.com/pub/products/vmp.html"); michael@0: response.setLicenseURL("http://www.viewpoint.com/pub/privacy.html"); michael@0: } else { michael@0: response.setPid(-1); michael@0: } michael@0: michael@0: response.setRequestedMimetype(aMimetype); michael@0: return response; michael@0: michael@0: } michael@0: } michael@0: