diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-19 16:01:26 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-19 16:01:26 +0000 |
commit | 56cd2343fceaaa20540db96619ae15424f8d2814 (patch) | |
tree | 7e4c7181602409d980d29c60a0042ff29cffc2c8 /ipc | |
parent | bd6304d77174538115c626e68d53ed4e79d1928c (diff) | |
download | chromium_src-56cd2343fceaaa20540db96619ae15424f8d2814.zip chromium_src-56cd2343fceaaa20540db96619ae15424f8d2814.tar.gz chromium_src-56cd2343fceaaa20540db96619ae15424f8d2814.tar.bz2 |
Remove ipc fuzzing code.
BUG=298372
Review URL: https://codereview.chromium.org/27031007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229577 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_proxy.cc | 4 | ||||
-rw-r--r-- | ipc/ipc_channel_proxy.h | 19 |
2 files changed, 0 insertions, 23 deletions
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc index acc068d..18ed304 100644 --- a/ipc/ipc_channel_proxy.cc +++ b/ipc/ipc_channel_proxy.cc @@ -288,14 +288,12 @@ ChannelProxy::ChannelProxy(const IPC::ChannelHandle& channel_handle, Listener* listener, base::SingleThreadTaskRunner* ipc_task_runner) : context_(new Context(listener, ipc_task_runner)), - outgoing_message_filter_(NULL), did_init_(false) { Init(channel_handle, mode, true); } ChannelProxy::ChannelProxy(Context* context) : context_(context), - outgoing_message_filter_(NULL), did_init_(false) { } @@ -358,8 +356,6 @@ bool ChannelProxy::Send(Message* message) { // TODO(alexeypa): add DCHECK(CalledOnValidThread()) here. Currently there are // tests that call Send() from a wrong thread. See http://crbug.com/163523. - if (outgoing_message_filter()) - message = outgoing_message_filter()->Rewrite(message); #ifdef IPC_MESSAGE_LOG_ENABLED Logging::GetInstance()->OnSendMessage(message, context_->channel_id()); diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h index a0de88e..1f5ecf4 100644 --- a/ipc/ipc_channel_proxy.h +++ b/ipc/ipc_channel_proxy.h @@ -95,15 +95,6 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { friend class base::RefCountedThreadSafe<MessageFilter>; }; - // Interface for a filter to be imposed on outgoing messages which can - // re-write the message. Used mainly for testing. - class OutgoingMessageFilter { - public: - // Returns a re-written message, freeing the original, or simply the - // original unchanged if no rewrite indicated. - virtual Message *Rewrite(Message *message) = 0; - }; - // Initializes a channel proxy. The channel_handle and mode parameters are // passed directly to the underlying IPC::Channel. The listener is called on // the thread that creates the ChannelProxy. The filter's OnMessageReceived @@ -152,10 +143,6 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { void AddFilter(MessageFilter* filter); void RemoveFilter(MessageFilter* filter); - void set_outgoing_message_filter(OutgoingMessageFilter* filter) { - outgoing_message_filter_ = filter; - } - // Called to clear the pointer to the IPC task runner when it's going away. void ClearIPCTaskRunner(); @@ -256,10 +243,6 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { Context* context() { return context_.get(); } - OutgoingMessageFilter* outgoing_message_filter() { - return outgoing_message_filter_; - } - private: friend class SendCallbackHelper; @@ -268,8 +251,6 @@ class IPC_EXPORT ChannelProxy : public Sender, public base::NonThreadSafe { // that involves this data. scoped_refptr<Context> context_; - OutgoingMessageFilter* outgoing_message_filter_; - // Whether the channel has been initialized. bool did_init_; }; |