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/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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return RenderThreadImpl::current()->Send(msg); | 117 return RenderThreadImpl::current()->Send(msg); |
118 } | 118 } |
119 | 119 |
120 void BrowserPluginManager::OnCompositorFrameSwappedPluginUnavailable( | 120 void BrowserPluginManager::OnCompositorFrameSwappedPluginUnavailable( |
121 const IPC::Message& message) { | 121 const IPC::Message& message) { |
122 BrowserPluginMsg_CompositorFrameSwapped::Param param; | 122 BrowserPluginMsg_CompositorFrameSwapped::Param param; |
123 if (!BrowserPluginMsg_CompositorFrameSwapped::Read(&message, ¶m)) | 123 if (!BrowserPluginMsg_CompositorFrameSwapped::Read(&message, ¶m)) |
124 return; | 124 return; |
125 | 125 |
126 FrameHostMsg_CompositorFrameSwappedACK_Params params; | 126 FrameHostMsg_CompositorFrameSwappedACK_Params params; |
127 params.producing_host_id = get<1>(param).producing_host_id; | 127 params.producing_host_id = base::get<1>(param).producing_host_id; |
128 params.producing_route_id = get<1>(param).producing_route_id; | 128 params.producing_route_id = base::get<1>(param).producing_route_id; |
129 params.output_surface_id = get<1>(param).output_surface_id; | 129 params.output_surface_id = base::get<1>(param).output_surface_id; |
130 Send(new BrowserPluginHostMsg_CompositorFrameSwappedACK( | 130 Send(new BrowserPluginHostMsg_CompositorFrameSwappedACK( |
131 get<0>(param), params)); | 131 base::get<0>(param), params)); |
132 } | 132 } |
133 | 133 |
134 } // namespace content | 134 } // namespace content |
OLD | NEW |