summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorben <ben@chromium.org>2016-03-08 09:35:03 -0800
committerCommit bot <commit-bot@chromium.org>2016-03-08 17:39:16 +0000
commit52850ee33c3c2e813ff4f3c295f67ad7d9e7df65 (patch)
tree43237dbdffd944bab1c06f7df6a5d791440975a4 /mojo
parentc3800cbbbaf1436edde3c2e96e79105ebe1c14ec (diff)
downloadchromium_src-52850ee33c3c2e813ff4f3c295f67ad7d9e7df65.zip
chromium_src-52850ee33c3c2e813ff4f3c295f67ad7d9e7df65.tar.gz
chromium_src-52850ee33c3c2e813ff4f3c295f67ad7d9e7df65.tar.bz2
Use instance name to uniquify renderers.
We were uniquifying their URLs, but this breaks manifest loading. So use instance names instead. This will allow us to move the capability filter spec for the renderers into a manifest. BUG= Review URL: https://codereview.chromium.org/1778443002 Cr-Commit-Position: refs/heads/master@{#379850}
Diffstat (limited to 'mojo')
-rw-r--r--mojo/shell/public/cpp/connector.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mojo/shell/public/cpp/connector.h b/mojo/shell/public/cpp/connector.h
index be6ba43..804eb03d 100644
--- a/mojo/shell/public/cpp/connector.h
+++ b/mojo/shell/public/cpp/connector.h
@@ -62,6 +62,12 @@ class Connector {
connection->GetInterface(ptr);
}
template <typename Interface>
+ void ConnectToInterface(const Identity& target,
+ InterfacePtr<Interface>* ptr) {
+ ConnectParams params(target);
+ return ConnectToInterface(&params, ptr);
+ }
+ template <typename Interface>
void ConnectToInterface(const std::string& name,
InterfacePtr<Interface>* ptr) {
ConnectParams params(name);