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

Unified Diff: ipc/ipc_channel_proxy.h

Issue 24514003: Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 3 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
Index: ipc/ipc_channel_proxy.h
===================================================================
--- ipc/ipc_channel_proxy.h (revision 225319)
+++ ipc/ipc_channel_proxy.h (working copy)
@@ -54,12 +54,11 @@
//
class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe {
public:
- struct MessageFilterTraits;
// A class that receives messages on the thread where the IPC channel is
// running. It can choose to prevent the default action for an IPC message.
class IPC_EXPORT MessageFilter
- : public base::RefCountedThreadSafe<MessageFilter, MessageFilterTraits> {
+ : public base::RefCountedThreadSafe<MessageFilter> {
scherkus (not reviewing) 2013/09/26 19:57:37 is this cleanup on the side? (e.g., there's only o
scherkus (not reviewing) 2013/09/26 19:58:34 wait ignore this ... I think the answer is BMF was
jam 2013/09/26 20:22:39 exactly
public:
MessageFilter();
@@ -89,26 +88,13 @@
// the message be handled in the default way.
virtual bool OnMessageReceived(const Message& message);
- // Called when the message filter is about to be deleted. This gives
- // derived classes the option of controlling which thread they're deleted
- // on etc.
- virtual void OnDestruct() const;
-
protected:
virtual ~MessageFilter();
private:
- friend class base::RefCountedThreadSafe<MessageFilter,
- MessageFilterTraits>;
+ friend class base::RefCountedThreadSafe<MessageFilter>;
};
- struct MessageFilterTraits {
- static void Destruct(const MessageFilter* filter) {
- filter->OnDestruct();
- }
- };
-
-
// Interface for a filter to be imposed on outgoing messages which can
// re-write the message. Used mainly for testing.
class OutgoingMessageFilter {

Powered by Google App Engine
This is Rietveld 408576698