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

Unified Diff: content/common/font_cache_dispatcher_win.cc

Issue 343593006: Revert 276939 "Decouple IPC::MessageFilter from IPC::Channel" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2057/src/
Patch Set: Created 6 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/font_cache_dispatcher_win.h ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_cache_dispatcher_win.cc
===================================================================
--- content/common/font_cache_dispatcher_win.cc (revision 278168)
+++ content/common/font_cache_dispatcher_win.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/strings/string16.h"
#include "content/common/child_process_messages.h"
+#include "ipc/ipc_channel.h"
namespace content {
namespace {
@@ -135,14 +136,14 @@
}
FontCacheDispatcher::FontCacheDispatcher()
- : sender_(NULL) {
+ : channel_(NULL) {
}
FontCacheDispatcher::~FontCacheDispatcher() {
}
-void FontCacheDispatcher::OnFilterAdded(IPC::Sender* sender) {
- sender_ = sender;
+void FontCacheDispatcher::OnFilterAdded(IPC::Channel* channel) {
+ channel_ = channel;
}
bool FontCacheDispatcher::OnMessageReceived(const IPC::Message& message) {
@@ -157,12 +158,12 @@
}
void FontCacheDispatcher::OnChannelClosing() {
- sender_ = NULL;
+ channel_ = NULL;
}
bool FontCacheDispatcher::Send(IPC::Message* message) {
- if (sender_)
- return sender_->Send(message);
+ if (channel_)
+ return channel_->Send(message);
delete message;
return false;
« no previous file with comments | « content/common/font_cache_dispatcher_win.h ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698