diff options
Diffstat (limited to 'content/plugin')
-rw-r--r-- | content/plugin/plugin_channel.cc | 12 | ||||
-rw-r--r-- | content/plugin/plugin_main.cc | 4 | ||||
-rw-r--r-- | content/plugin/plugin_thread.cc | 2 | ||||
-rw-r--r-- | content/plugin/webplugin_delegate_stub.cc | 9 | ||||
-rw-r--r-- | content/plugin/webplugin_proxy.cc | 8 |
5 files changed, 21 insertions, 14 deletions
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc index 3a27e61..781ca00 100644 --- a/content/plugin/plugin_channel.cc +++ b/content/plugin/plugin_channel.cc @@ -67,7 +67,7 @@ class PluginChannel::MessageFilter : public IPC::ChannelProxy::MessageFilter { return; // Delete the event when the stack unwinds as it could be in use now. - MessageLoop::current()->DeleteSoon( + base::MessageLoop::current()->DeleteSoon( FROM_HERE, modal_dialog_event_map_[render_view_id].event); modal_dialog_event_map_.erase(render_view_id); } @@ -200,7 +200,7 @@ base::WaitableEvent* PluginChannel::GetModalDialogEvent(int render_view_id) { } PluginChannel::~PluginChannel() { - MessageLoop::current()->PostDelayedTask( + base::MessageLoop::current()->PostDelayedTask( FROM_HERE, base::Bind(&PluginReleaseCallback), base::TimeDelta::FromMinutes(kPluginReleaseTimeMinutes)); @@ -280,9 +280,11 @@ void PluginChannel::OnDestroyInstance(int instance_id, // Don't release the modal dialog event right away, but do it after the // stack unwinds since the plugin can be destroyed later if it's in use // right now. - MessageLoop::current()->PostNonNestableTask(FROM_HERE, base::Bind( - &MessageFilter::ReleaseModalDialogEvent, filter.get(), - render_view_id)); + base::MessageLoop::current()->PostNonNestableTask( + FROM_HERE, + base::Bind(&MessageFilter::ReleaseModalDialogEvent, + filter.get(), + render_view_id)); return; } } diff --git a/content/plugin/plugin_main.cc b/content/plugin/plugin_main.cc index 2f0817e..298fbd4 100644 --- a/content/plugin/plugin_main.cc +++ b/content/plugin/plugin_main.cc @@ -52,7 +52,7 @@ int PluginMain(const MainFunctionParams& parameters) { #endif InitializeChromeApplication(); #endif - MessageLoop main_message_loop(MessageLoop::TYPE_UI); + base::MessageLoop main_message_loop(base::MessageLoop::TYPE_UI); base::PlatformThread::SetName("CrPluginMain"); base::PowerMonitor power_monitor; @@ -77,7 +77,7 @@ int PluginMain(const MainFunctionParams& parameters) { { ChildProcess plugin_process; plugin_process.set_main_thread(new PluginThread()); - MessageLoop::current()->Run(); + base::MessageLoop::current()->Run(); } return 0; diff --git a/content/plugin/plugin_thread.cc b/content/plugin/plugin_thread.cc index 595bf5b..8256ef6 100644 --- a/content/plugin/plugin_thread.cc +++ b/content/plugin/plugin_thread.cc @@ -58,7 +58,7 @@ class EnsureTerminateMessageFilter : public IPC::ChannelProxy::MessageFilter { // Ensure that we don't wait indefinitely for the plugin to shutdown. // as the browser does not terminate plugin processes on shutdown. // We achieve this by posting an exit process task on the IO thread. - MessageLoop::current()->PostDelayedTask( + base::MessageLoop::current()->PostDelayedTask( FROM_HERE, base::Bind(&EnsureTerminateMessageFilter::Terminate, this), kPluginProcessTerminateTimeout); diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc index e1e1e00..5c25961 100644 --- a/content/plugin/webplugin_delegate_stub.cc +++ b/content/plugin/webplugin_delegate_stub.cc @@ -65,9 +65,12 @@ WebPluginDelegateStub::~WebPluginDelegateStub() { if (channel_->in_send()) { // The delegate or an npobject is in the callstack, so don't delete it // right away. - MessageLoop::current()->PostNonNestableTask(FROM_HERE, - base::Bind(&DestroyWebPluginAndDelegate, plugin_scriptable_object_, - delegate_, webplugin_)); + base::MessageLoop::current()->PostNonNestableTask( + FROM_HERE, + base::Bind(&DestroyWebPluginAndDelegate, + plugin_scriptable_object_, + delegate_, + webplugin_)); } else { // Safe to delete right away. DestroyWebPluginAndDelegate( diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc index 91980f6..43e177c 100644 --- a/content/plugin/webplugin_proxy.cc +++ b/content/plugin/webplugin_proxy.cc @@ -199,9 +199,11 @@ void WebPluginProxy::InvalidateRect(const gfx::Rect& rect) { waiting_for_paint_ = true; // Invalidates caused by calls to NPN_InvalidateRect/NPN_InvalidateRgn // need to be painted asynchronously as per the NPAPI spec. - MessageLoop::current()->PostTask(FROM_HERE, - base::Bind(&WebPluginProxy::OnPaint, weak_factory_.GetWeakPtr(), - damaged_rect_)); + base::MessageLoop::current()->PostTask( + FROM_HERE, + base::Bind(&WebPluginProxy::OnPaint, + weak_factory_.GetWeakPtr(), + damaged_rect_)); damaged_rect_ = gfx::Rect(); } } |