both would have to be my answer. When the pins wear down, the chain will lengthen by the amount of material worn off. If its consistent for all the links, it will expand by the amount worn down multiplied by the number of links.
Also, metal does fatigue over time, which is where the stretching comes in.