On my mountain bike it also depends on the situation of course. On singletrack, if I need to pass a bike, hiker, horse, whatever, I'll say, "Can I pass when you find a safe spot?" If it's a fire road or wide path I'll say, "passing on your left". On downhills I try not to pass. If it's a long downhill, I'll just stop and wait.