Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HELPERS_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_HELPERS_H_ |
| 6 #define CHROME_BROWSER_UI_TAB_HELPERS_H_ | 6 #define CHROME_BROWSER_UI_TAB_HELPERS_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 class WebContents; | 9 class WebContents; |
| 10 } | 10 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 // chrome::Navigate creates WebContents that are destined for the tab strip, | 44 // chrome::Navigate creates WebContents that are destined for the tab strip, |
| 45 // and that might have WebUI that immediately calls back into random tab | 45 // and that might have WebUI that immediately calls back into random tab |
| 46 // helpers. | 46 // helpers. |
| 47 friend class BrowserNavigatorWebContentsAdoption; | 47 friend class BrowserNavigatorWebContentsAdoption; |
| 48 | 48 |
| 49 // Prerendering loads pages that have arbitrary external content; it needs | 49 // Prerendering loads pages that have arbitrary external content; it needs |
| 50 // the full set of tab helpers to deal with it. | 50 // the full set of tab helpers to deal with it. |
| 51 friend class prerender::PrerenderContents; | 51 friend class prerender::PrerenderContents; |
| 52 | 52 |
| 53 // The print preview distiller needs to generate print previews, | |
| 54 // which is supported by tab helpers. | |
|
Avi (use Gerrit)
2015/07/21 20:47:58
But not *all* the tab helpers. Please explicitly a
arjunpatel
2015/07/23 16:19:45
Acknowledged.
| |
| 55 friend class PrintPreviewDistiller; | |
| 56 | |
| 53 // Adopts the specified WebContents as a full-fledged browser tab, attaching | 57 // Adopts the specified WebContents as a full-fledged browser tab, attaching |
| 54 // all the associated tab helpers that are needed for the WebContents to | 58 // all the associated tab helpers that are needed for the WebContents to |
| 55 // serve in that role. It is safe to call this on a WebContents that was | 59 // serve in that role. It is safe to call this on a WebContents that was |
| 56 // already adopted. | 60 // already adopted. |
| 57 static void AttachTabHelpers(content::WebContents* web_contents); | 61 static void AttachTabHelpers(content::WebContents* web_contents); |
| 58 }; | 62 }; |
| 59 | 63 |
| 60 #endif // CHROME_BROWSER_UI_TAB_HELPERS_H_ | 64 #endif // CHROME_BROWSER_UI_TAB_HELPERS_H_ |
| OLD | NEW |