diff options
Diffstat (limited to 'content/browser')
-rw-r--r-- | content/browser/tab_contents/tab_contents.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h index 37dc8c3..8a99fda 100644 --- a/content/browser/tab_contents/tab_contents.h +++ b/content/browser/tab_contents/tab_contents.h @@ -735,6 +735,12 @@ class CONTENT_EXPORT TabContents : public PageNavigator, // The corresponding view. scoped_ptr<TabContentsView> view_; + // A list of observers notified when page state changes. Weak references. + // This MUST be listed above render_manager_ since at destruction time the + // latter might cause RenderViewHost's destructor to call us and we might use + // the observer list then. + ObserverList<TabContentsObserver> observers_; + // Helper classes ------------------------------------------------------------ // Manages creation and swapping of render views. @@ -849,9 +855,6 @@ class CONTENT_EXPORT TabContents : public PageNavigator, // remember it. bool temporary_zoom_settings_; - // A list of observers notified when page state changes. Weak references. - ObserverList<TabContentsObserver> observers_; - // Content restrictions, used to disable print/copy etc based on content's // (full-page plugins for now only) permissions. int content_restrictions_; |