1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIRequestObserver extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 2; 33 34 public static final String NS_IREQUESTOBSERVER_IID_STRING = 35 "fd91e2e0-1481-11d3-9333-00104ba0fd40"; 36 37 public static final nsID NS_IREQUESTOBSERVER_IID = 38 new nsID(NS_IREQUESTOBSERVER_IID_STRING); 39 40 public nsIRequestObserver(int address) { 41 super(address); 42 } 43 44 public int OnStartRequest(int aRequest, int aContext) { 45 return XPCOM.VtblCall(super.LAST_METHOD_ID + 1, getAddress(), aRequest, aContext); 46 } 47 48 public int OnStopRequest(int aRequest, int aContext, int aStatusCode) { 49 return XPCOM.VtblCall(super.LAST_METHOD_ID + 2, getAddress(), aRequest, aContext, aStatusCode); 50 } 51 } | Popular Tags |