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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 435833002: Navigation transitions: Plumb data from the outgoing renderer to the incoming renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Testfix Created 6 years, 4 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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/browser/transition_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 9174d12fad402f6a798486a93b8e3358fafbbb46..86e30623b033a8a17b98bfb7fb3d8ad62e975cd3 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -443,8 +443,8 @@ bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message) {
#if defined(OS_ANDROID)
IPC_MESSAGE_HANDLER(ViewHostMsg_RunWebAudioMediaCodec, OnWebAudioMediaCodec)
#endif
- IPC_MESSAGE_HANDLER(FrameHostMsg_SetHasPendingTransitionRequest,
- OnSetHasPendingTransitionRequest)
+ IPC_MESSAGE_HANDLER(FrameHostMsg_AddNavigationTransitionData,
+ OnAddNavigationTransitionData)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -1229,10 +1229,15 @@ void RenderMessageFilter::OnWebAudioMediaCodec(
}
#endif
-void RenderMessageFilter::OnSetHasPendingTransitionRequest(int render_frame_id,
- bool is_transition) {
- TransitionRequestManager::GetInstance()->SetHasPendingTransitionRequest(
- render_process_id_, render_frame_id, is_transition);
+
+void RenderMessageFilter::OnAddNavigationTransitionData(
+ int render_frame_id,
+ const std::string& allowed_destination_host_pattern,
+ const std::string& selector,
+ const std::string& markup) {
+ TransitionRequestManager::GetInstance()->AddPendingTransitionRequestData(
+ render_process_id_, render_frame_id, allowed_destination_host_pattern,
+ selector, markup);
}
} // namespace content
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/browser/transition_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698