public void ImportCookies(string filename) { _cookieManager.ImportCookies((nsIFile)Xpcom.NewNativeLocalFile(filename)); }
internal GeckoResponse(nsIRequest request) { Channel = Xpcom.QueryInterface <nsIChannel>(request); HttpChannel = Xpcom.QueryInterface <nsIHttpChannel>(request); }
public CookieManager() { var manager = Xpcom.GetService <nsICookieManager2>("@mozilla.org/cookiemanager;1"); _cookieManager = Xpcom.QueryInterface <nsICookieManager2>(manager); }
public GeckoMIMEInputStream() { InputStream = Xpcom.CreateInstance <nsIMIMEInputStream>("@mozilla.org/network/mime-input-stream;1"); }
public void Print() { nsIWebBrowserPrint print = Xpcom.QueryInterface <nsIWebBrowserPrint>(this.DomWindow); print.Print(null, null); }
public void Dispose() { nsIJSContextStack contextStack = Xpcom.GetService <nsIJSContextStack>("@mozilla.org/js/xpc/ContextStack;1"); contextStack.Pop(); }
static GeckoPreferences() { // ensure we're initialized Xpcom.Initialize(); PrefService = Xpcom.GetService <nsIPrefService>("@mozilla.org/preferences-service;1"); }
public GeckoStyleSheetService() { StyleSheetService = Xpcom.GetService <nsIStyleSheetService>("@mozilla.org/content/style-sheet-service;1"); StyleSheetService = Xpcom.QueryInterface <nsIStyleSheetService>(StyleSheetService); }