| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 // Send the alternate error page URL to the renderer. | 253 // Send the alternate error page URL to the renderer. |
| 254 void UpdateAlternateErrorPageURL(RenderViewHost* rvh); | 254 void UpdateAlternateErrorPageURL(RenderViewHost* rvh); |
| 255 | 255 |
| 256 // Update the RenderView's WebPreferences. | 256 // Update the RenderView's WebPreferences. |
| 257 void UpdateWebPreferences(); | 257 void UpdateWebPreferences(); |
| 258 | 258 |
| 259 // Update the TabContents's RendererPreferences. | 259 // Update the TabContents's RendererPreferences. |
| 260 void UpdateRendererPreferences(); | 260 void UpdateRendererPreferences(); |
| 261 | 261 |
| 262 // Create or destroy SafebrowsingDetectionHost as needed if the user's |
| 263 // safe browsing preference has changed. |
| 264 void UpdateSafebrowsingDetectionHost(); |
| 265 |
| 262 void RemoveInfoBarInternal(InfoBarDelegate* delegate, bool animate); | 266 void RemoveInfoBarInternal(InfoBarDelegate* delegate, bool animate); |
| 263 void RemoveAllInfoBars(bool animate); | 267 void RemoveAllInfoBars(bool animate); |
| 264 | 268 |
| 265 // Data for core operation --------------------------------------------------- | 269 // Data for core operation --------------------------------------------------- |
| 266 | 270 |
| 267 // Delegate for notifying our owner about stuff. Not owned by us. | 271 // Delegate for notifying our owner about stuff. Not owned by us. |
| 268 TabContentsWrapperDelegate* delegate_; | 272 TabContentsWrapperDelegate* delegate_; |
| 269 | 273 |
| 270 // Delegates for InfoBars associated with this TabContentsWrapper. | 274 // Delegates for InfoBars associated with this TabContentsWrapper. |
| 271 std::vector<InfoBarDelegate*> infobars_; | 275 std::vector<InfoBarDelegate*> infobars_; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 340 |
| 337 // The supporting objects need to outlive the TabContents dtor (as they may | 341 // 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 | 342 // be called upon during its execution). As a result, this must come last |
| 339 // in the list. | 343 // in the list. |
| 340 scoped_ptr<TabContents> tab_contents_; | 344 scoped_ptr<TabContents> tab_contents_; |
| 341 | 345 |
| 342 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 346 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 343 }; | 347 }; |
| 344 | 348 |
| 345 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 349 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |