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

Unified Diff: content/plugin/plugin_channel_base.h

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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/plugin/plugin_channel.cc ('k') | content/plugin/plugin_channel_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_channel_base.h
===================================================================
--- content/plugin/plugin_channel_base.h (revision 83679)
+++ content/plugin/plugin_channel_base.h (working copy)
@@ -12,13 +12,16 @@
#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop.h"
#include "content/common/message_router.h"
#include "content/plugin/npobject_base.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_sync_channel.h"
#include "ui/gfx/native_widget_types.h"
+namespace base {
+class MessageLoopProxy;
+}
+
// Encapsulates an IPC channel between a renderer and a plugin process.
class PluginChannelBase : public IPC::Channel::Listener,
public IPC::Message::Sender,
@@ -77,7 +80,7 @@
// on the channel and its ref count is 0, the object deletes itself.
static PluginChannelBase* GetChannel(
const IPC::ChannelHandle& channel_handle, IPC::Channel::Mode mode,
- PluginChannelFactory factory, MessageLoop* ipc_message_loop,
+ PluginChannelFactory factory, base::MessageLoopProxy* ipc_message_loop,
bool create_pipe_now);
// Sends a message to all instances.
@@ -100,7 +103,8 @@
send_unblocking_only_during_unblock_dispatch_ = true;
}
- virtual bool Init(MessageLoop* ipc_message_loop, bool create_pipe_now);
+ virtual bool Init(base::MessageLoopProxy* ipc_message_loop,
+ bool create_pipe_now);
scoped_ptr<IPC::SyncChannel> channel_;
« no previous file with comments | « content/plugin/plugin_channel.cc ('k') | content/plugin/plugin_channel_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698