Almost every Wi-Fi router records the websites the devices linked to its visit. The only person accessing the Wi-Fi router's logs is the network owner, who can see which connected users visited which websites. Therefore, if you use someone else's Wi-Fi, he can see what you've been viewing.