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

Unified Diff: mojo/shell/public/cpp/connection.h

Issue 1781913003: Capability Classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@45class
Patch Set: . Created 4 years, 9 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 | « no previous file | mojo/shell/public/cpp/lib/connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/connection.h
diff --git a/mojo/shell/public/cpp/connection.h b/mojo/shell/public/cpp/connection.h
index d3b3b8a1e240e98cf0740f0ad1a78626b43111ac..edb407311e1d4400a37c4793dfa8e660557b6656 100644
--- a/mojo/shell/public/cpp/connection.h
+++ b/mojo/shell/public/cpp/connection.h
@@ -82,6 +82,11 @@ class Connection {
mojo::GetInterface(GetRemoteInterfaces(), ptr);
}
+ // Returns true if the remote application has the specified capability class
+ // specified in its manifest. Only valid for inbound connections. Will return
+ // false for outbound connections.
+ virtual bool HasCapabilityClass(const std::string& class_name) const = 0;
+
// Returns the name that was used by the source application to establish a
// connection to the destination application.
//
« no previous file with comments | « no previous file | mojo/shell/public/cpp/lib/connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698