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

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

Issue 299833008: Move AcceptWithResponder() out of the MessageReceiver interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_filter.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 6526fb5ecd4a23c262b36f0cb2cc485a5bd7983b..caab1a6b74d1848a1a50629dc0b8f433087f47fc 100644
--- a/mojo/public/cpp/bindings/lib/router.h
+++ b/mojo/public/cpp/bindings/lib/router.h
@@ -14,7 +14,7 @@
namespace mojo {
namespace internal {
-class Router : public MessageReceiver {
+class Router : public MessageReceiverWithResponder {
public:
Router(ScopedMessagePipeHandle message_pipe,
FilterChain filters,
@@ -23,7 +23,7 @@ class Router : public MessageReceiver {
// Sets the receiver to handle messages read from the message pipe that do
// not have the kMessageIsResponse flag set.
- void set_incoming_receiver(MessageReceiver* receiver) {
+ void set_incoming_receiver(MessageReceiverWithResponder* receiver) {
incoming_receiver_ = receiver;
}
@@ -67,8 +67,7 @@ class Router : public MessageReceiver {
// MessageReceiver implementation:
virtual bool Accept(Message* message) MOJO_OVERRIDE;
- virtual bool AcceptWithResponder(Message* message,
- MessageReceiver* responder) MOJO_OVERRIDE;
+
private:
Router* router_;
};
@@ -79,7 +78,7 @@ class Router : public MessageReceiver {
FilterChain filters_;
Connector connector_;
SharedData<Router*> weak_self_;
- MessageReceiver* incoming_receiver_;
+ MessageReceiverWithResponder* incoming_receiver_;
ResponderMap responders_;
uint64_t next_request_id_;
};
« no previous file with comments | « mojo/public/cpp/bindings/lib/message_filter.cc ('k') | mojo/public/cpp/bindings/lib/router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698