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

Unified Diff: services/shell/public/cpp/interface_registry.h

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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: services/shell/public/cpp/interface_registry.h
diff --git a/services/shell/public/cpp/interface_registry.h b/services/shell/public/cpp/interface_registry.h
index 844f142e589cee9d956b64e60678768203adf01c..6ac149bf197e08f26e7ab7e5596f6bf0985bf340 100644
--- a/services/shell/public/cpp/interface_registry.h
+++ b/services/shell/public/cpp/interface_registry.h
@@ -7,6 +7,7 @@
#include <memory>
#include <queue>
+#include <set>
#include <utility>
#include "base/callback.h"
@@ -123,6 +124,9 @@ class InterfaceRegistry : public mojom::InterfaceProvider {
// Resumes incoming interface request binding.
void ResumeBinding();
+ // Populates a set with the interface names this registry can bind.
+ void GetInterfaceNames(std::set<std::string>* interface_names);
+
private:
using NameToInterfaceBinderMap =
std::map<std::string, std::unique_ptr<InterfaceBinder>>;

Powered by Google App Engine
This is Rietveld 408576698