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

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

Issue 689123003: Revert of Navigation transitions (web to native app): Pass data after starting provisional load ... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
1232 TransitionRequestManager::GetInstance()->AddPendingTransitionRequestData( 1230 TransitionRequestManager::GetInstance()->AddPendingTransitionRequestData(
1233 render_process_id_, 1231 render_process_id_,
1234 params.render_frame_id, 1232 params.render_frame_id,
1235 params.allowed_destination_host_pattern, 1233 params.allowed_destination_host_pattern,
1236 params.selector, 1234 params.selector,
1237 params.markup, 1235 params.markup,
1238 params.elements); 1236 params.names,
1237 params.rects);
1239 } 1238 }
1240 1239
1241 void RenderMessageFilter::OnAllocateGpuMemoryBuffer( 1240 void RenderMessageFilter::OnAllocateGpuMemoryBuffer(
1242 uint32 width, 1241 uint32 width,
1243 uint32 height, 1242 uint32 height,
1244 gfx::GpuMemoryBuffer::Format format, 1243 gfx::GpuMemoryBuffer::Format format,
1245 gfx::GpuMemoryBuffer::Usage usage, 1244 gfx::GpuMemoryBuffer::Usage usage,
1246 IPC::Message* reply) { 1245 IPC::Message* reply) {
1247 base::CheckedNumeric<int> size = width; 1246 base::CheckedNumeric<int> size = width;
1248 size *= height; 1247 size *= height;
(...skipping 23 matching lines...) Expand all
1272 } 1271 }
1273 1272
1274 void RenderMessageFilter::OnDeletedGpuMemoryBuffer( 1273 void RenderMessageFilter::OnDeletedGpuMemoryBuffer(
1275 gfx::GpuMemoryBufferType type, 1274 gfx::GpuMemoryBufferType type,
1276 const gfx::GpuMemoryBufferId& id) { 1275 const gfx::GpuMemoryBufferId& id) {
1277 BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer( 1276 BrowserGpuMemoryBufferManager::current()->ChildProcessDeletedGpuMemoryBuffer(
1278 type, id, PeerHandle()); 1277 type, id, PeerHandle());
1279 } 1278 }
1280 1279
1281 } // namespace content 1280 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/cross_site_resource_handler.cc ('k') | content/browser/transition_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698