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

Unified Diff: content/common/resource_dispatcher.h

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/common/quota_dispatcher.h ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_dispatcher.h
diff --git a/content/common/resource_dispatcher.h b/content/common/resource_dispatcher.h
index 7c5cdbafd32cd1f030aeb20ff28e498f1cf8e681..363fb78be0fbeaa3e347c08e6918f775684be63c 100644
--- a/content/common/resource_dispatcher.h
+++ b/content/common/resource_dispatcher.h
@@ -17,7 +17,8 @@
#include "base/shared_memory.h"
#include "base/time.h"
#include "content/common/content_export.h"
-#include "ipc/ipc_channel.h"
+#include "ipc/ipc_listener.h"
+#include "ipc/ipc_sender.h"
#include "webkit/glue/resource_loader_bridge.h"
namespace content {
@@ -28,12 +29,12 @@ struct ResourceResponseHead;
// This class serves as a communication interface between the
// ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in
// the child process. It can be used from any child process.
-class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
+class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
public:
- explicit ResourceDispatcher(IPC::Message::Sender* sender);
+ explicit ResourceDispatcher(IPC::Sender* sender);
virtual ~ResourceDispatcher();
- // IPC::Channel::Listener implementation.
+ // IPC::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
// Creates a ResourceLoaderBridge for this type of dispatcher, this is so
@@ -55,7 +56,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
// Cancels a request in the pending_requests_ list.
void CancelPendingRequest(int routing_id, int request_id);
- IPC::Message::Sender* message_sender() const {
+ IPC::Sender* message_sender() const {
return message_sender_;
}
@@ -162,7 +163,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
// for use on deferred message queues that are no longer needed.
static void ReleaseResourcesInMessageQueue(MessageQueue* queue);
- IPC::Message::Sender* message_sender_;
+ IPC::Sender* message_sender_;
// All pending requests issued to the host
PendingRequestList pending_requests_;
« no previous file with comments | « content/common/quota_dispatcher.h ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698