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

Side by Side Diff: content/browser/renderer_host/render_message_filter.cc

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename test function. Created 6 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_message_filter.h" 5 #include "content/browser/renderer_host/render_message_filter.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 12 matching lines...) Expand all
23 #include "content/browser/gpu/gpu_data_manager_impl.h" 23 #include "content/browser/gpu/gpu_data_manager_impl.h"
24 #include "content/browser/loader/resource_dispatcher_host_impl.h" 24 #include "content/browser/loader/resource_dispatcher_host_impl.h"
25 #include "content/browser/media/media_internals.h" 25 #include "content/browser/media/media_internals.h"
26 #include "content/browser/plugin_process_host.h" 26 #include "content/browser/plugin_process_host.h"
27 #include "content/browser/plugin_service_impl.h" 27 #include "content/browser/plugin_service_impl.h"
28 #include "content/browser/ppapi_plugin_process_host.h" 28 #include "content/browser/ppapi_plugin_process_host.h"
29 #include "content/browser/renderer_host/pepper/pepper_security_helper.h" 29 #include "content/browser/renderer_host/pepper/pepper_security_helper.h"
30 #include "content/browser/renderer_host/render_process_host_impl.h" 30 #include "content/browser/renderer_host/render_process_host_impl.h"
31 #include "content/browser/renderer_host/render_view_host_delegate.h" 31 #include "content/browser/renderer_host/render_view_host_delegate.h"
32 #include "content/browser/renderer_host/render_widget_helper.h" 32 #include "content/browser/renderer_host/render_widget_helper.h"
33 #include "content/browser/transition_request_manager.h"
33 #include "content/common/child_process_host_impl.h" 34 #include "content/common/child_process_host_impl.h"
34 #include "content/common/child_process_messages.h" 35 #include "content/common/child_process_messages.h"
35 #include "content/common/cookie_data.h" 36 #include "content/common/cookie_data.h"
36 #include "content/common/desktop_notification_messages.h" 37 #include "content/common/desktop_notification_messages.h"
37 #include "content/common/frame_messages.h" 38 #include "content/common/frame_messages.h"
38 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 39 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
39 #include "content/common/gpu/client/gpu_memory_buffer_impl_shm.h" 40 #include "content/common/gpu/client/gpu_memory_buffer_impl_shm.h"
40 #include "content/common/host_shared_bitmap_manager.h" 41 #include "content/common/host_shared_bitmap_manager.h"
41 #include "content/common/media/media_param_traits.h" 42 #include "content/common/media/media_param_traits.h"
42 #include "content/common/view_messages.h" 43 #include "content/common/view_messages.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 #if defined(OS_WIN) 461 #if defined(OS_WIN)
461 IPC_MESSAGE_HANDLER(ViewHostMsg_GetMonitorColorProfile, 462 IPC_MESSAGE_HANDLER(ViewHostMsg_GetMonitorColorProfile,
462 OnGetMonitorColorProfile) 463 OnGetMonitorColorProfile)
463 #endif 464 #endif
464 IPC_MESSAGE_HANDLER(ViewHostMsg_MediaLogEvents, OnMediaLogEvents) 465 IPC_MESSAGE_HANDLER(ViewHostMsg_MediaLogEvents, OnMediaLogEvents)
465 IPC_MESSAGE_HANDLER(ViewHostMsg_Are3DAPIsBlocked, OnAre3DAPIsBlocked) 466 IPC_MESSAGE_HANDLER(ViewHostMsg_Are3DAPIsBlocked, OnAre3DAPIsBlocked)
466 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLose3DContext, OnDidLose3DContext) 467 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLose3DContext, OnDidLose3DContext)
467 #if defined(OS_ANDROID) 468 #if defined(OS_ANDROID)
468 IPC_MESSAGE_HANDLER(ViewHostMsg_RunWebAudioMediaCodec, OnWebAudioMediaCodec) 469 IPC_MESSAGE_HANDLER(ViewHostMsg_RunWebAudioMediaCodec, OnWebAudioMediaCodec)
469 #endif 470 #endif
471 IPC_MESSAGE_HANDLER(FrameHostMsg_SetHasPendingTransitionRequest,
472 OnSetHasPendingTransitionRequest)
470 IPC_MESSAGE_UNHANDLED(handled = false) 473 IPC_MESSAGE_UNHANDLED(handled = false)
471 IPC_END_MESSAGE_MAP() 474 IPC_END_MESSAGE_MAP()
472 475
473 return handled; 476 return handled;
474 } 477 }
475 478
476 void RenderMessageFilter::OnDestruct() const { 479 void RenderMessageFilter::OnDestruct() const {
477 BrowserThread::DeleteOnIOThread::Destruct(this); 480 BrowserThread::DeleteOnIOThread::Destruct(this);
478 } 481 }
479 482
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 } 1334 }
1332 1335
1333 void RenderMessageFilter::GpuMemoryBufferAllocated( 1336 void RenderMessageFilter::GpuMemoryBufferAllocated(
1334 IPC::Message* reply, 1337 IPC::Message* reply,
1335 const gfx::GpuMemoryBufferHandle& handle) { 1338 const gfx::GpuMemoryBufferHandle& handle) {
1336 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 1339 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
1337 handle); 1340 handle);
1338 Send(reply); 1341 Send(reply);
1339 } 1342 }
1340 1343
1344 void RenderMessageFilter::OnSetHasPendingTransitionRequest(int frame_id,
1345 bool is_transition) {
1346 TransitionRequestManager::GetInstance()->SetHasPendingTransitionRequest(
1347 render_process_id_, frame_id, is_transition);
1348 }
1349
1341 } // namespace content 1350 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698