summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/webview/webview.h
diff options
context:
space:
mode:
authorrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-02 08:54:20 +0000
committerrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-02 08:54:20 +0000
commitd35162497672a6c2d66429e94b7341bc73d3620c (patch)
treeca73bc4c1b92913ecb438f3dd3351f97b2b4da60 /ui/views/controls/webview/webview.h
parente2641d881d24be43d5ddaa4ea72a23fb9cf41df0 (diff)
downloadchromium_src-d35162497672a6c2d66429e94b7341bc73d3620c.zip
chromium_src-d35162497672a6c2d66429e94b7341bc73d3620c.tar.gz
chromium_src-d35162497672a6c2d66429e94b7341bc73d3620c.tar.bz2
Re-implement the screensaver to use WebView instead of ExtensionDialogHost.
Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Review URL: https://chromiumcodereview.appspot.com/10191010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/webview/webview.h')
-rw-r--r--ui/views/controls/webview/webview.h9
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_