How would the website code communicate with the browser, unless it was some open API you can refer to. As for "in conjunction with Gmail", yes that's called cookies.
From my understanding, that's just expanded cookies. The Chrome frame can see the cookie from your Gmail, and also log you in the browser, and vice versa. Nothing magical going on, just cookies.