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

Unified Diff: mojo/shell/public/cpp/lib/connection_impl.cc

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
Patch Set: . Created 4 years, 10 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 | « mojo/shell/public/cpp/lib/connection_impl.h ('k') | mojo/shell/public/cpp/lib/connector_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/lib/connection_impl.cc
diff --git a/mojo/shell/public/cpp/lib/connection_impl.cc b/mojo/shell/public/cpp/lib/connection_impl.cc
index 4897bb3df25108ac7b7c0e65b9d1dd7df450e333..fa454c5be5dfc7f57ee65d9e0048cff17dc23ddf 100644
--- a/mojo/shell/public/cpp/lib/connection_impl.cc
+++ b/mojo/shell/public/cpp/lib/connection_impl.cc
@@ -20,15 +20,15 @@ namespace internal {
// ConnectionImpl, public:
ConnectionImpl::ConnectionImpl(
- const std::string& connection_url,
- const std::string& remote_url,
+ const std::string& connection_name,
+ const std::string& remote_name,
uint32_t remote_id,
uint32_t remote_user_id,
shell::mojom::InterfaceProviderPtr remote_interfaces,
shell::mojom::InterfaceProviderRequest local_interfaces,
const std::set<std::string>& allowed_interfaces)
- : connection_url_(connection_url),
- remote_url_(remote_url),
+ : connection_name_(connection_name),
+ remote_name_(remote_name),
remote_id_(remote_id),
remote_ids_valid_(false),
remote_user_id_(remote_user_id),
@@ -56,12 +56,12 @@ shell::mojom::Connector::ConnectCallback ConnectionImpl::GetConnectCallback() {
////////////////////////////////////////////////////////////////////////////////
// ConnectionImpl, Connection implementation:
-const std::string& ConnectionImpl::GetConnectionURL() {
- return connection_url_;
+const std::string& ConnectionImpl::GetConnectionName() {
+ return connection_name_;
}
-const std::string& ConnectionImpl::GetRemoteApplicationURL() {
- return remote_url_;
+const std::string& ConnectionImpl::GetRemoteApplicationName() {
+ return remote_name_;
}
uint32_t ConnectionImpl::GetRemoteUserID() const {
« no previous file with comments | « mojo/shell/public/cpp/lib/connection_impl.h ('k') | mojo/shell/public/cpp/lib/connector_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698