summaryrefslogtreecommitdiffstats
path: root/mojo/public/cpp/bindings/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/public/cpp/bindings/message.h')
-rw-r--r--mojo/public/cpp/bindings/message.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mojo/public/cpp/bindings/message.h b/mojo/public/cpp/bindings/message.h
index 4b8014a..5163669 100644
--- a/mojo/public/cpp/bindings/message.h
+++ b/mojo/public/cpp/bindings/message.h
@@ -137,6 +137,11 @@ class MessageReceiverWithStatus : public MessageReceiver {
// Returns |true| if this MessageReceiver is currently bound to a MessagePipe,
// the pipe has not been closed, and the pipe has not encountered an error.
virtual bool IsValid() = 0;
+
+ // DCHECKs if this MessageReceiver is currently bound to a MessagePipe, the
+ // pipe has not been closed, and the pipe has not encountered an error.
+ // This function may be called on any thread.
+ virtual void DCheckInvalid(const std::string& message) = 0;
};
// An alternative to MessageReceiverWithResponder for cases in which it