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

Unified Diff: ipc/ipc_forwarding_message_filter.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Major changes to clean up deadlock & other issues Created 8 years, 4 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_forwarding_message_filter.h
diff --git a/ipc/ipc_forwarding_message_filter.h b/ipc/ipc_forwarding_message_filter.h
index 5b404c504675636849627cf45474b154d3a9a954..719592526736e18c530917c93835b665c04b5866 100644
--- a/ipc/ipc_forwarding_message_filter.h
+++ b/ipc/ipc_forwarding_message_filter.h
@@ -45,6 +45,8 @@ class IPC_EXPORT ForwardingMessageFilter : public ChannelProxy::MessageFilter {
void AddRoute(int routing_id);
void RemoveRoute(int routing_id);
+ void SetPredicate(base::Callback<bool(const Message&)> predicate);
scshunt 2012/08/12 01:42:45 Need to switch to the virtual design suggested by
scshunt 2012/08/17 17:30:28 Done, except I didn't actually use virtual functio
+
// ChannelProxy::MessageFilter methods:
virtual bool OnMessageReceived(const Message& message) OVERRIDE;
@@ -67,6 +69,8 @@ class IPC_EXPORT ForwardingMessageFilter : public ChannelProxy::MessageFilter {
// Indicates the routing_ids for which messages should be filtered.
std::set<int> routes_;
+ base::Callback<bool(const Message&)> predicate_;
+
DISALLOW_COPY_AND_ASSIGN(ForwardingMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698