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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager.cc

Issue 821453003: Update legacy Tuple-using code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 12 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/renderer/browser_plugin/browser_plugin_manager.h" 5 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "content/common/browser_plugin/browser_plugin_constants.h" 7 #include "content/common/browser_plugin/browser_plugin_constants.h"
8 #include "content/common/browser_plugin/browser_plugin_messages.h" 8 #include "content/common/browser_plugin/browser_plugin_messages.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/public/renderer/browser_plugin_delegate.h" 10 #include "content/public/renderer/browser_plugin_delegate.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return RenderThreadImpl::current()->Send(msg); 125 return RenderThreadImpl::current()->Send(msg);
126 } 126 }
127 127
128 void BrowserPluginManager::OnCompositorFrameSwappedPluginUnavailable( 128 void BrowserPluginManager::OnCompositorFrameSwappedPluginUnavailable(
129 const IPC::Message& message) { 129 const IPC::Message& message) {
130 BrowserPluginMsg_CompositorFrameSwapped::Param param; 130 BrowserPluginMsg_CompositorFrameSwapped::Param param;
131 if (!BrowserPluginMsg_CompositorFrameSwapped::Read(&message, &param)) 131 if (!BrowserPluginMsg_CompositorFrameSwapped::Read(&message, &param))
132 return; 132 return;
133 133
134 FrameHostMsg_CompositorFrameSwappedACK_Params params; 134 FrameHostMsg_CompositorFrameSwappedACK_Params params;
135 params.producing_host_id = param.b.producing_host_id; 135 params.producing_host_id = get<1>(param).producing_host_id;
136 params.producing_route_id = param.b.producing_route_id; 136 params.producing_route_id = get<1>(param).producing_route_id;
137 params.output_surface_id = param.b.output_surface_id; 137 params.output_surface_id = get<1>(param).output_surface_id;
138 Send(new BrowserPluginHostMsg_CompositorFrameSwappedACK( 138 Send(new BrowserPluginHostMsg_CompositorFrameSwappedACK(
139 message.routing_id(), param.a, params)); 139 message.routing_id(), get<0>(param), params));
140 } 140 }
141 141
142 } // namespace content 142 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | content/renderer/external_popup_menu_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698