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

Side by Side Diff: content/renderer/webplugin_delegate_proxy.cc

Issue 6901146: Switch IPC::ChannelProxy to use MessageLoopProxy instead of MessageLoop. This allows us to remov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/plugin_channel_host.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/plugin_channel_host.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698