Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: content/port/browser/web_contents_view_port.h

Issue 12252016: Prevented connecting drag drop events to a SwappedOut RenderViewHost in WebContentsViewGtk (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/port/browser/web_contents_view_port.h
diff --git a/content/port/browser/web_contents_view_port.h b/content/port/browser/web_contents_view_port.h
index 631fe5767119dad64ae40b5f3a2e907057072e8a..ec8f0db7eac768919216ab7ed2b84798b866ebcb 100644
--- a/content/port/browser/web_contents_view_port.h
+++ b/content/port/browser/web_contents_view_port.h
@@ -42,8 +42,9 @@ class CONTENT_EXPORT WebContentsViewPort : public WebContentsView {
virtual void RenderViewCreated(RenderViewHost* host) = 0;
// Invoked when the WebContents is notified that the RenderView has been
- // swapped in.
- virtual void RenderViewSwappedIn(RenderViewHost* host) = 0;
+ // swapped in. |old_host| is optional, and may be null.
+ virtual void RenderViewSwappedIn(RenderViewHost* new_host,
+ RenderViewHost* old_host) = 0;
#if defined(OS_MACOSX)
// If we close the tab while a UI control is in an event-tracking

Powered by Google App Engine
This is Rietveld 408576698