Chromium Code Reviews| 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 { |