diff options
Diffstat (limited to 'ui/views/controls/webview/webview.h')
-rw-r--r-- | ui/views/controls/webview/webview.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/views/controls/webview/webview.h b/ui/views/controls/webview/webview.h index 5a73dc9..de6fa7c 100644 --- a/ui/views/controls/webview/webview.h +++ b/ui/views/controls/webview/webview.h @@ -102,6 +102,13 @@ class VIEWS_EXPORT WebView : public View, content::RenderViewHost* new_host); void WebContentsDestroyed(content::WebContents* web_contents); + // Create a regular or test web contents (based on whether we're running + // in a unit test or not). + content::WebContents* CreateWebContents( + content::BrowserContext* browser_context, + content::SiteInstance* site_instance); + + NativeViewHost* wcv_holder_; scoped_ptr<content::WebContents> wc_owner_; content::WebContents* web_contents_; @@ -114,4 +121,4 @@ class VIEWS_EXPORT WebView : public View, } // namespace views -#endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
\ No newline at end of file +#endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ |