Add CommonWebContentsDelegate

This commit is contained in:
Cheng Zhao 2015-06-05 13:49:12 +08:00
parent e8f33f51fb
commit 19d742de37
7 changed files with 55 additions and 7 deletions

View file

@ -109,7 +109,8 @@ content::ServiceWorkerContext* GetServiceWorkerContext(
} // namespace
WebContents::WebContents(content::WebContents* web_contents)
: content::WebContentsObserver(web_contents),
: CommonWebContentsDelegate(false),
content::WebContentsObserver(web_contents),
guest_instance_id_(-1),
guest_opaque_(true),
guest_host_(nullptr),
@ -118,7 +119,8 @@ WebContents::WebContents(content::WebContents* web_contents)
}
WebContents::WebContents(const mate::Dictionary& options)
: guest_instance_id_(-1),
: CommonWebContentsDelegate(true),
guest_instance_id_(-1),
guest_opaque_(true),
guest_host_(nullptr),
auto_size_enabled_(false),