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

Unified Diff: content/browser/mojo/mojo_shell_context.h

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 | « content/browser/mojo/mojo_app_connection_impl.cc ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_shell_context.h
diff --git a/content/browser/mojo/mojo_shell_context.h b/content/browser/mojo/mojo_shell_context.h
index 807b44774442357c0c24d90674b3783a23b2703c..2ed9cfcd3ac627010e3d5d6e6c228a0ce4e30fc4 100644
--- a/content/browser/mojo/mojo_shell_context.h
+++ b/content/browser/mojo/mojo_shell_context.h
@@ -16,8 +16,6 @@
#include "mojo/shell/application_manager.h"
#include "mojo/shell/public/interfaces/shell.mojom.h"
-class GURL;
-
namespace mojo {
class ShellClient;
}
@@ -29,18 +27,18 @@ namespace content {
class CONTENT_EXPORT MojoShellContext {
public:
using StaticApplicationMap =
- std::map<GURL, base::Callback<scoped_ptr<mojo::ShellClient>()>>;
+ std::map<std::string, base::Callback<scoped_ptr<mojo::ShellClient>()>>;
MojoShellContext();
~MojoShellContext();
- // Connects an application at |url| and gets a handle to its exposed services.
- // This is only intended for use in browser code that's not part of some Mojo
- // application. May be called from any thread. |requestor_url| is given to
- // the target application as the requestor's URL upon connection.
+ // Connects an application at |name| and gets a handle to its exposed
+ // services. This is only intended for use in browser code that's not part of
+ // some Mojo application. May be called from any thread. |requestor_name| is
+ // given to the target application as the requestor's name upon connection.
static void ConnectToApplication(
- const GURL& url,
- const GURL& requestor_url,
+ const std::string& name,
+ const std::string& requestor_name,
mojo::shell::mojom::InterfaceProviderRequest request,
mojo::shell::mojom::InterfaceProviderPtr exposed_services,
const mojo::shell::mojom::Connector::ConnectCallback& callback);
@@ -52,8 +50,8 @@ class CONTENT_EXPORT MojoShellContext {
friend class Proxy;
void ConnectToApplicationOnOwnThread(
- const GURL& url,
- const GURL& requestor_url,
+ const std::string& name,
+ const std::string& requestor_name,
mojo::shell::mojom::InterfaceProviderRequest request,
mojo::shell::mojom::InterfaceProviderPtr exposed_services,
const mojo::shell::mojom::Connector::ConnectCallback& callback);
« no previous file with comments | « content/browser/mojo/mojo_app_connection_impl.cc ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698