OLD | NEW |
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 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 base::WorkerPool::PostTask( | 1220 base::WorkerPool::PostTask( |
1221 FROM_HERE, | 1221 FROM_HERE, |
1222 base::Bind(&media::WebAudioMediaCodecBridge::RunWebAudioMediaCodec, | 1222 base::Bind(&media::WebAudioMediaCodecBridge::RunWebAudioMediaCodec, |
1223 encoded_data_handle, pcm_output, data_size), | 1223 encoded_data_handle, pcm_output, data_size), |
1224 true); | 1224 true); |
1225 } | 1225 } |
1226 #endif | 1226 #endif |
1227 | 1227 |
1228 void RenderMessageFilter::OnAddNavigationTransitionData( | 1228 void RenderMessageFilter::OnAddNavigationTransitionData( |
1229 FrameHostMsg_AddNavigationTransitionData_Params params) { | 1229 FrameHostMsg_AddNavigationTransitionData_Params params) { |
| 1230 if (params.elements.size() > TransitionRequestManager::kMaxNumOfElements) |
| 1231 return; |
1230 TransitionRequestManager::GetInstance()->AddPendingTransitionRequestData( | 1232 TransitionRequestManager::GetInstance()->AddPendingTransitionRequestData( |
1231 render_process_id_, | 1233 render_process_id_, |
1232 params.render_frame_id, | 1234 params.render_frame_id, |
1233 params.allowed_destination_host_pattern, | 1235 params.allowed_destination_host_pattern, |
1234 params.selector, | 1236 params.selector, |
1235 params.markup, | 1237 params.markup, |
1236 params.names, | 1238 params.elements); |
1237 params.rects); | |
1238 } | 1239 } |
1239 | 1240 |
1240 void RenderMessageFilter::OnAllocateGpuMemoryBuffer( | 1241 void RenderMessageFilter::OnAllocateGpuMemoryBuffer( |
1241 uint32 width, | 1242 uint32 width, |
1242 uint32 height, | 1243 uint32 height, |
1243 gfx::GpuMemoryBuffer::Format format, | 1244 gfx::GpuMemoryBuffer::Format format, |
1244 gfx::GpuMemoryBuffer::Usage usage, | 1245 gfx::GpuMemoryBuffer::Usage usage, |
1245 IPC::Message* reply) { | 1246 IPC::Message* reply) { |
1246 base::CheckedNumeric<int> size = width; | 1247 base::CheckedNumeric<int> size = width; |
1247 size *= height; | 1248 size *= height; |
(...skipping 23 matching lines...) Expand all Loading... |
1271 } | 1272 } |
1272 | 1273 |
1273 void RenderMessageFilter::OnDeletedGpuMemoryBuffer( | 1274 void RenderMessageFilter::OnDeletedGpuMemoryBuffer( |
1274 gfx::GpuMemoryBufferType type, | 1275 gfx::GpuMemoryBufferType type, |
1275 const gfx::GpuMemoryBufferId& id) { | 1276 const gfx::GpuMemoryBufferId& id) { |
1276 BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer( | 1277 BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer( |
1277 type, id, PeerHandle()); | 1278 type, id, PeerHandle()); |
1278 } | 1279 } |
1279 | 1280 |
1280 } // namespace content | 1281 } // namespace content |
OLD | NEW |