Evolution of giant gaseous protoplanets embedded in the primitive solar nebula