public bool OnBeforePluginLoad(IWebBrowser browser, string url, string policyUrl, WebPluginInfo info)
 {
     throw new NotImplementedException();
 }
Esempio n. 2
0
        bool IWebPluginInfoVisitor.Visit(WebPluginInfo plugin, int count, int total)
        {
            list.Add(plugin);

            //Return true to keep visiting plugins
            return(true);
        }
Esempio n. 3
0
        bool IRequestHandler.OnBeforePluginLoad(IWebBrowser browserControl, IBrowser browser, string url, string policyUrl, WebPluginInfo info)
        {
            bool blockPluginLoad = false;

            // Enable next line to demo: Block any plugin with "flash" in its name
            // try it out with e.g. http://www.youtube.com/watch?v=0uBOtQOO70Y
            //blockPluginLoad = info.Name.ToLower().Contains("flash");

            // ReSharper disable once ConditionIsAlwaysTrueOrFalse
            return blockPluginLoad;
        }
 public bool OnBeforePluginLoad(IWebBrowser browserControl, IBrowser browser, string url, string policyUrl,
     WebPluginInfo info) {
     return true;
 }
Esempio n. 5
0
 bool IRequestHandler.OnBeforePluginLoad(IWebBrowser browser, string url, string policyUrl, WebPluginInfo info)
 {
     return false;
 }
 public bool OnBeforePluginLoad(IWebBrowser browser, string url, string policyUrl, WebPluginInfo info)
 {
     return false;
 }