Sorry for change request again, but think it is better to have instead

void WaitForFinishLoad(content::WebContents* content) {
classObserver : public content::WebContentsObserver {
// all you already have.
};
new Observer(content);
}