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

Unified Diff: content/common/font_cache_dispatcher_win.cc

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landing 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
diff --git a/content/common/font_cache_dispatcher_win.cc b/content/common/font_cache_dispatcher_win.cc
index 30430799d093425666f32c04830dededd70fd1d1..2181a08f98d92d73415941c3cdf92deb25a7acbd 100644
--- a/content/common/font_cache_dispatcher_win.cc
+++ b/content/common/font_cache_dispatcher_win.cc
@@ -10,7 +10,6 @@
#include "base/logging.h"
#include "base/strings/string16.h"
#include "content/common/child_process_messages.h"
-#include "ipc/ipc_channel.h"
namespace content {
namespace {
@@ -136,14 +135,14 @@ class FontCache {
}
FontCacheDispatcher::FontCacheDispatcher()
- : channel_(NULL) {
+ : sender_(NULL) {
}
FontCacheDispatcher::~FontCacheDispatcher() {
}
-void FontCacheDispatcher::OnFilterAdded(IPC::Channel* channel) {
- channel_ = channel;
+void FontCacheDispatcher::OnFilterAdded(IPC::Sender* sender) {
+ sender_ = sender;
}
bool FontCacheDispatcher::OnMessageReceived(const IPC::Message& message) {
@@ -158,12 +157,12 @@ bool FontCacheDispatcher::OnMessageReceived(const IPC::Message& message) {
}
void FontCacheDispatcher::OnChannelClosing() {
- channel_ = NULL;
+ sender_ = NULL;
}
bool FontCacheDispatcher::Send(IPC::Message* message) {
- if (channel_)
- return channel_->Send(message);
+ if (sender_)
+ return sender_->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