OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webplugin_delegate_proxy.h" | 5 #include "content/renderer/webplugin_delegate_proxy.h" |
6 | 6 |
7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 // Return true so that the plugin widget is created and we can paint the | 292 // Return true so that the plugin widget is created and we can paint the |
293 // crashed plugin there. | 293 // crashed plugin there. |
294 return true; | 294 return true; |
295 } | 295 } |
296 return false; | 296 return false; |
297 } | 297 } |
298 | 298 |
299 scoped_refptr<PluginChannelHost> channel_host( | 299 scoped_refptr<PluginChannelHost> channel_host( |
300 PluginChannelHost::GetPluginChannelHost( | 300 PluginChannelHost::GetPluginChannelHost( |
301 channel_handle, ChildProcess::current()->io_message_loop())); | 301 channel_handle, ChildProcess::current()->io_message_loop_proxy())); |
302 if (!channel_host.get()) | 302 if (!channel_host.get()) |
303 return false; | 303 return false; |
304 | 304 |
305 int instance_id; | 305 int instance_id; |
306 bool result = channel_host->Send(new PluginMsg_CreateInstance( | 306 bool result = channel_host->Send(new PluginMsg_CreateInstance( |
307 mime_type_, &instance_id)); | 307 mime_type_, &instance_id)); |
308 if (!result) | 308 if (!result) |
309 return false; | 309 return false; |
310 | 310 |
311 channel_host_ = channel_host; | 311 channel_host_ = channel_host; |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 } | 1355 } |
1356 #endif | 1356 #endif |
1357 | 1357 |
1358 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1358 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
1359 int resource_id) { | 1359 int resource_id) { |
1360 if (!plugin_) | 1360 if (!plugin_) |
1361 return; | 1361 return; |
1362 | 1362 |
1363 plugin_->URLRedirectResponse(allow, resource_id); | 1363 plugin_->URLRedirectResponse(allow, resource_id); |
1364 } | 1364 } |
OLD | NEW |