Generalize the ExtensionFunctionDispatcher::Delegate interface a bit more. In particular remove GetExtensionHost() and GetExtensionDOMUI(). I'm going to add a new type of EFD::Delegate soon that is neither of these, and I don't think it makes sense to have the code assume that EFD::Delegate must be one of the two of them.

Some code still does RTTI stuff through RenderViewHostDelegate::GetRenderViewType(), but in that case it is more clear that there are a long list of potential view types, and that the caller must be more careful.

Review URL: http://codereview.chromium.org/1149003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42519 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_dom_ui.h b/chrome/browser/extensions/extension_dom_ui.h
index 54de39c..7892b89 100644
--- a/chrome/browser/extensions/extension_dom_ui.h
+++ b/chrome/browser/extensions/extension_dom_ui.h
@@ -41,13 +41,11 @@
                                    bool has_callback);
 
   // ExtensionFunctionDispatcher::Delegate
-  virtual Browser* GetBrowser(bool include_incognito) const;
-  virtual ExtensionDOMUI* GetExtensionDOMUI() { return this; }
-  virtual gfx::NativeWindow GetFrameNativeWindow();
-
-  virtual RenderViewHost* GetRenderViewHost();
-  virtual Profile* GetProfile();
+  virtual Browser* GetBrowser() const;
   virtual gfx::NativeView GetNativeViewOfHost();
+  virtual gfx::NativeWindow GetCustomFrameNativeWindow();
+
+  virtual Profile* GetProfile();
 
   virtual ExtensionBookmarkManagerEventRouter*
       extension_bookmark_manager_event_router() {