Chromium Code Reviews| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 virtual void DidBecomeSelected() OVERRIDE; | 229 virtual void DidBecomeSelected() OVERRIDE; |
| 230 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 230 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 231 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 231 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
| 232 | 232 |
| 233 // content::NotificationObserver overrides: | 233 // content::NotificationObserver overrides: |
| 234 virtual void Observe(int type, | 234 virtual void Observe(int type, |
| 235 const content::NotificationSource& source, | 235 const content::NotificationSource& source, |
| 236 const content::NotificationDetails& details) OVERRIDE; | 236 const content::NotificationDetails& details) OVERRIDE; |
| 237 | 237 |
| 238 private: | 238 private: |
| 239 friend class PerTabPrefsTabHelper; // for UpdateWebPreferences | |
|
Avi (use Gerrit)
2011/11/30 15:15:18
This doesn't make me happy, but I'm not sure I hav
mnaganov (inactive)
2011/11/30 15:19:35
An alternative arrangement is to put a call to Upd
| |
| 240 | |
| 239 // Internal helpers ---------------------------------------------------------- | 241 // Internal helpers ---------------------------------------------------------- |
| 240 | 242 |
| 241 // Message handlers. | 243 // Message handlers. |
| 242 void OnSnapshot(const SkBitmap& bitmap); | 244 void OnSnapshot(const SkBitmap& bitmap); |
| 243 void OnPDFHasUnsupportedFeature(); | 245 void OnPDFHasUnsupportedFeature(); |
| 244 | 246 |
| 245 // Returns the server that can provide alternate error pages. If the returned | 247 // Returns the server that can provide alternate error pages. If the returned |
| 246 // URL is empty, the default error page built into WebKit will be used. | 248 // URL is empty, the default error page built into WebKit will be used. |
| 247 GURL GetAlternateErrorPageURL() const; | 249 GURL GetAlternateErrorPageURL() const; |
| 248 | 250 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 341 | 343 |
| 342 // The supporting objects need to outlive the TabContents dtor (as they may | 344 // The supporting objects need to outlive the TabContents dtor (as they may |
| 343 // be called upon during its execution). As a result, this must come last | 345 // be called upon during its execution). As a result, this must come last |
| 344 // in the list. | 346 // in the list. |
| 345 scoped_ptr<TabContents> tab_contents_; | 347 scoped_ptr<TabContents> tab_contents_; |
| 346 | 348 |
| 347 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 349 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 348 }; | 350 }; |
| 349 | 351 |
| 350 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 352 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |