Add Browser class to controll when the application should quit.

This commit is contained in:
Cheng Zhao 2013-05-02 23:43:23 +08:00
parent 8cf1050730
commit d151d494bd
12 changed files with 138 additions and 7 deletions

View file

@ -128,6 +128,9 @@ class NativeWindow : public content::WebContentsDelegate,
content::WebContents* new_contents) OVERRIDE;
virtual content::JavaScriptDialogManager*
GetJavaScriptDialogManager() OVERRIDE;
virtual void BeforeUnloadFired(content::WebContents* tab,
bool proceed,
bool* proceed_to_fire_unload) OVERRIDE;
virtual void CloseContents(content::WebContents* source) OVERRIDE;
// Implementations of content::WebContentsObserver.