Index: content/shell/shell_content_browser_client.h |
=================================================================== |
--- content/shell/shell_content_browser_client.h (revision 117304) |
+++ content/shell/shell_content_browser_client.h (working copy) |
@@ -16,6 +16,8 @@ |
#include "content/browser/tab_contents/tab_contents_view_win_delegate.h" |
#endif |
+class ShellMainDelegate; |
+ |
namespace content { |
class ShellBrowserMainParts; |
@@ -26,7 +28,7 @@ |
#endif |
{ |
public: |
- ShellContentBrowserClient(); |
+ ShellContentBrowserClient(ShellMainDelegate* delegate); |
virtual ~ShellContentBrowserClient(); |
void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { |
@@ -179,6 +181,9 @@ |
#endif |
private: |
+ // The delegate will always outlive this class. |
+ ShellMainDelegate* delegate_; |
+ |
ShellBrowserMainParts* shell_browser_main_parts_; |
}; |