diff options
Diffstat (limited to 'chrome/browser/extensions/extension_host.cc')
-rw-r--r-- | chrome/browser/extensions/extension_host.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index 2d99c88..cb6bd6b 100644 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -177,6 +177,10 @@ void ExtensionHost::CreateView(Browser* browser) { #endif } +TabContents* ExtensionHost::associated_tab_contents() const { + return associated_tab_contents_; +} + RenderProcessHost* ExtensionHost::render_process_host() const { return render_view_host_->process(); } @@ -444,6 +448,14 @@ gfx::NativeWindow ExtensionHost::GetMessageBoxRootWindow() { return NULL; } +TabContents* ExtensionHost::AsTabContents() { + return NULL; +} + +ExtensionHost* ExtensionHost::AsExtensionHost() { + return this; +} + void ExtensionHost::OnMessageBoxClosed(IPC::Message* reply_msg, bool success, const std::wstring& prompt) { @@ -742,6 +754,10 @@ ViewType::Type ExtensionHost::GetRenderViewType() const { return extension_host_type_; } +const GURL& ExtensionHost::GetURL() const { + return url_; +} + void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { if (view_.get()) view_->RenderViewCreated(); |