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

Unified Diff: mojo/public/cpp/bindings/lib/router.h

Issue 273233002: Mojo cpp bindings: add support for validating incoming messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and rebase Created 6 years, 7 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 | « mojo/public/cpp/bindings/lib/message_header_validator.cc ('k') | mojo/public/cpp/bindings/lib/router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/router.h
diff --git a/mojo/public/cpp/bindings/lib/router.h b/mojo/public/cpp/bindings/lib/router.h
index 220af7d0ddc831964bf03e6fe5cac47a4ed62ef9..6526fb5ecd4a23c262b36f0cb2cc485a5bd7983b 100644
--- a/mojo/public/cpp/bindings/lib/router.h
+++ b/mojo/public/cpp/bindings/lib/router.h
@@ -8,6 +8,7 @@
#include <map>
#include "mojo/public/cpp/bindings/lib/connector.h"
+#include "mojo/public/cpp/bindings/lib/filter_chain.h"
#include "mojo/public/cpp/bindings/lib/shared_data.h"
namespace mojo {
@@ -15,9 +16,9 @@ namespace internal {
class Router : public MessageReceiver {
public:
- // The Router takes ownership of |message_pipe|.
- explicit Router(ScopedMessagePipeHandle message_pipe,
- MojoAsyncWaiter* waiter = GetDefaultAsyncWaiter());
+ Router(ScopedMessagePipeHandle message_pipe,
+ FilterChain filters,
+ MojoAsyncWaiter* waiter = GetDefaultAsyncWaiter());
virtual ~Router();
// Sets the receiver to handle messages read from the message pipe that do
@@ -74,10 +75,11 @@ class Router : public MessageReceiver {
bool HandleIncomingMessage(Message* message);
+ HandleIncomingMessageThunk thunk_;
+ FilterChain filters_;
Connector connector_;
SharedData<Router*> weak_self_;
MessageReceiver* incoming_receiver_;
- HandleIncomingMessageThunk thunk_;
ResponderMap responders_;
uint64_t next_request_id_;
};
« no previous file with comments | « mojo/public/cpp/bindings/lib/message_header_validator.cc ('k') | mojo/public/cpp/bindings/lib/router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698