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

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

Issue 2043713004: Mojo: Add NotifyBadMessage API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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: mojo/public/cpp/bindings/lib/interface_endpoint_client.h
diff --git a/mojo/public/cpp/bindings/lib/interface_endpoint_client.h b/mojo/public/cpp/bindings/lib/interface_endpoint_client.h
index 3f820db3c30c66b179e6b2203478f66bb0b19509..f1de4c76012f31b8bf785f1e1ef7768d365c8970 100644
--- a/mojo/public/cpp/bindings/lib/interface_endpoint_client.h
+++ b/mojo/public/cpp/bindings/lib/interface_endpoint_client.h
@@ -67,6 +67,11 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
AssociatedGroup* associated_group();
uint32_t interface_id() const;
+ void set_interface_name(const std::string& name) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ interface_name_ = name;
+ }
+
// After this call the object is in an invalid state and shouldn't be reused.
ScopedInterfaceEndpointHandle PassHandle();
@@ -142,6 +147,10 @@ class InterfaceEndpointClient : public MessageReceiverWithResponder {
Closure error_handler_;
bool encountered_error_;
+ // The name of the interface which is bound by this client. Used only for
+ // debugging purposes.
+ std::string interface_name_;
+
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
base::ThreadChecker thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698