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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 88503002: Have the unload event execute in background on cross-site navigations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Nasko's comments Created 6 years, 11 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/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 2430fecc3a47a7575eecbc403c243be51c2fd21c..51d1bffa18bbbf4668a583e3a066ed9844e7b4fe 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "content/common/content_export.h"
#include "content/public/browser/render_frame_host.h"
@@ -78,6 +79,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
is_swapped_out_ = is_swapped_out;
}
+ // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called
+ // when the swap out ack is received.
Charlie Reis 2014/01/31 19:11:55 nit: SwapOutACK
clamy 2014/02/05 14:21:42 Done.
+ void SetPendingShutdown(const base::Closure& on_swap_out);
+
protected:
friend class RenderFrameHostFactory;

Powered by Google App Engine
This is Rietveld 408576698