OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // Overrides ----------------------------------------------------------------- | 191 // Overrides ----------------------------------------------------------------- |
192 | 192 |
193 // TabContentsObserver overrides: | 193 // TabContentsObserver overrides: |
194 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 194 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
195 virtual void RenderViewGone() OVERRIDE; | 195 virtual void RenderViewGone() OVERRIDE; |
196 virtual void DidBecomeSelected() OVERRIDE; | 196 virtual void DidBecomeSelected() OVERRIDE; |
197 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 197 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
198 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 198 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
199 | 199 |
200 // NotificationObserver overrides: | 200 // NotificationObserver overrides: |
201 virtual void Observe(NotificationType type, | 201 virtual void Observe(int type, |
202 const NotificationSource& source, | 202 const NotificationSource& source, |
203 const NotificationDetails& details) OVERRIDE; | 203 const NotificationDetails& details) OVERRIDE; |
204 | 204 |
205 // Infobars ------------------------------------------------------------------ | 205 // Infobars ------------------------------------------------------------------ |
206 | 206 |
207 // Adds an InfoBar for the specified |delegate|. | 207 // Adds an InfoBar for the specified |delegate|. |
208 // | 208 // |
209 // If infobars are disabled for this tab or the tab already has a delegate | 209 // If infobars are disabled for this tab or the tab already has a delegate |
210 // which returns true for InfoBarDelegate::EqualsDelegate(delegate), | 210 // which returns true for InfoBarDelegate::EqualsDelegate(delegate), |
211 // |delegate| is closed immediately without being added. | 211 // |delegate| is closed immediately without being added. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 336 |
337 // The supporting objects need to outlive the TabContents dtor (as they may | 337 // The supporting objects need to outlive the TabContents dtor (as they may |
338 // be called upon during its execution). As a result, this must come last | 338 // be called upon during its execution). As a result, this must come last |
339 // in the list. | 339 // in the list. |
340 scoped_ptr<TabContents> tab_contents_; | 340 scoped_ptr<TabContents> tab_contents_; |
341 | 341 |
342 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 342 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
343 }; | 343 }; |
344 | 344 |
345 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 345 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |