diff options
Diffstat (limited to 'chrome/browser/extensions/extension_host.cc')
-rw-r--r-- | chrome/browser/extensions/extension_host.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index f913732..0acc018 100644 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -212,6 +212,14 @@ void ExtensionHost::CreateRenderViewNow() { DCHECK(IsRenderViewLive()); } +Browser* ExtensionHost::GetBrowser() const { + return view() ? view()->browser() : NULL; +} + +gfx::NativeView ExtensionHost::GetNativeViewOfHost() { + return view() ? view()->native_view() : NULL; +} + void ExtensionHost::NavigateToURL(const GURL& url) { // Prevent explicit navigation to another extension id's pages. // This method is only called by some APIs, so we still need to protect |