
var EXPORTED_SYMBOLS=["HistoryCleaner_avg"];function HistoryCleaner_avg_init(url){let jsScope={};var loader=Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);loader.loadSubScript(url,jsScope);return jsScope;}
var HistoryCleaner_avg={cookiesIgnoredHosts:["toolbarhome.com","my-quick-search.com","my-web-search.com"],sanitizerScope:{},DeleteSearchHistory:function(){try{if(!("Sanitizer"in this.sanitizerScope)){this.sanitizerScope=HistoryCleaner_avg_init("chrome://browser/content/sanitize.js");}
var s=new this.sanitizerScope.Sanitizer();s.prefDomain="privacy.cpd.";s.items["formdata"].clear();}catch(ex){}},DeleteBrowsingHistory:function(){try{if(!("Sanitizer"in this.sanitizerScope))
this.sanitizerScope=HistoryCleaner_avg_init("chrome://browser/content/sanitize.js");var s=new this.sanitizerScope.Sanitizer();s.prefDomain="privacy.cpd.";s.items["history"].clear();}catch(ex){}},DeleteDownloadsHistory:function(){try{if(!("Sanitizer"in this.sanitizerScope))
this.sanitizerScope=HistoryCleaner_avg_init("chrome://browser/content/sanitize.js");var s=new this.sanitizerScope.Sanitizer();s.prefDomain="privacy.cpd.";s.items["downloads"].clear();}catch(ex){}},DeleteCookiesHistory:function(isIgnoreHosts){function CookieHostExsists(host){var exsits=false;for(var i in HistoryCleaner_avg.cookiesIgnoredHosts){if(host.indexOf(HistoryCleaner_avg.cookiesIgnoredHosts[i])>-1){exsits=true;break;}}
return exsits;}
var cookieMgr=Components.classes["@mozilla.org/cookiemanager;1"].getService(Components.interfaces.nsICookieManager);if(!isIgnoreHosts){cookieMgr.removeAll();}
else{var cookiesEnum=cookieMgr.enumerator;while(cookiesEnum.hasMoreElements()){var cookie=cookiesEnum.getNext().QueryInterface(Components.interfaces.nsICookie2);if(!CookieHostExsists(cookie.host))
cookieMgr.remove(cookie.host,cookie.name,cookie.path,false);}}},DeleteCompleteHistory:function(){try{if(!("Sanitizer"in this.sanitizerScope))
this.sanitizerScope=HistoryCleaner_avg_init("chrome://browser/content/sanitize.js");var s=new this.sanitizerScope.Sanitizer();s.prefDomain="privacy.cpd.";s.items["formdata"].clear();s.items["history"].clear();s.items["downloads"].clear();this.DeleteCookiesHistory(true);}catch(ex){}}};