Index: chrome/browser/extensions/extension_popup_host.h |
=================================================================== |
--- chrome/browser/extensions/extension_popup_host.h (revision 34039) |
+++ chrome/browser/extensions/extension_popup_host.h (working copy) |
@@ -36,12 +36,14 @@ |
class PopupDelegate { |
public: |
PopupDelegate() {} |
- virtual ~PopupDelegate() {} |
- virtual Browser* GetBrowser() = 0; |
+ virtual ~PopupDelegate(); |
+ virtual Browser* GetBrowser() const = 0; |
virtual RenderViewHost* GetRenderViewHost() = 0; |
+ virtual Profile* GetProfile(); |
// Constructs, or returns the existing ExtensionPopupHost instance. |
ExtensionPopupHost* popup_host(); |
+ |
private: |
scoped_ptr<ExtensionPopupHost> popup_host_; |
@@ -51,6 +53,8 @@ |
explicit ExtensionPopupHost(PopupDelegate* delegate); |
virtual ~ExtensionPopupHost(); |
+ void RevokeDelegate() { delegate_ = NULL; } |
+ |
// Dismiss the hosted pop-up, if one is present. |
void DismissPopup(); |