Index: ui/views/controls/webview/webview.h |
diff --git a/ui/views/controls/webview/webview.h b/ui/views/controls/webview/webview.h |
index 41da90999d78f388ba81f81e3b6550ba4e964638..c15bea1251fcfa37fe08df89cc4983570707bdf4 100644 |
--- a/ui/views/controls/webview/webview.h |
+++ b/ui/views/controls/webview/webview.h |
@@ -97,6 +97,11 @@ class WEBVIEW_EXPORT WebView : public View, |
virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
protected: |
+ // Swaps the owned WebContents |wc_owner_| with |new_web_contents|. Returns |
+ // the previously owned WebContents. |
+ scoped_ptr<content::WebContents> SwapWebContents( |
+ scoped_ptr<content::WebContents> new_web_contents); |
+ |
// Overridden from View: |
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
virtual void ViewHierarchyChanged( |