nsIRunnable is generated from  nsIRunnable.idl
 
Here is the prototype of nsIRunnable.idl
 
/**
 * Represents a task which can be dispatched to a thread for execution.
 */
 
interface nsIRunnable : nsISupports
{
    /**
     * The function implementing the task to be run.
     */
    void run();
};