This is extracted from the netscape plugin sdk.
We should probably resynchronize with firefox headers.
