diff options
Diffstat (limited to 'chrome/browser/tab_contents')
| -rw-r--r-- | chrome/browser/tab_contents/constrained_window.h | 3 | ||||
| -rw-r--r-- | chrome/browser/tab_contents/render_view_host_manager.h | 5 | ||||
| -rw-r--r-- | chrome/browser/tab_contents/tab_contents_delegate.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/constrained_window.h b/chrome/browser/tab_contents/constrained_window.h index 3dc6592..7de2ade 100644 --- a/chrome/browser/tab_contents/constrained_window.h +++ b/chrome/browser/tab_contents/constrained_window.h @@ -53,6 +53,9 @@ class ConstrainedWindow { // Sets focus on the Constrained Window. virtual void FocusConstrainedWindow() {} + + protected: + virtual ~ConstrainedWindow() {} }; #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ diff --git a/chrome/browser/tab_contents/render_view_host_manager.h b/chrome/browser/tab_contents/render_view_host_manager.h index 0fa0f26..5a6e0f7 100644 --- a/chrome/browser/tab_contents/render_view_host_manager.h +++ b/chrome/browser/tab_contents/render_view_host_manager.h @@ -67,6 +67,9 @@ class RenderViewHostManager // Focuses the location bar. virtual void SetFocusToLocationBar(bool select_all) = 0; + + protected: + virtual ~Delegate() {} }; // Both delegate pointers must be non-NULL and are not owned by this class. @@ -76,7 +79,7 @@ class RenderViewHostManager // You must call Init() before using this class. RenderViewHostManager(RenderViewHostDelegate* render_view_delegate, Delegate* delegate); - ~RenderViewHostManager(); + virtual ~RenderViewHostManager(); // For arguments, see TabContents constructor. void Init(Profile* profile, diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h index 7854003..fdd0964 100644 --- a/chrome/browser/tab_contents/tab_contents_delegate.h +++ b/chrome/browser/tab_contents/tab_contents_delegate.h @@ -276,7 +276,7 @@ class TabContentsDelegate : public AutomationResourceRoutingDelegate { virtual void ContentTypeChanged(TabContents* source); protected: - ~TabContentsDelegate(); + virtual ~TabContentsDelegate(); }; #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
