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

Unified Diff: shell/external_application_registrar_connection.h

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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: shell/external_application_registrar_connection.h
diff --git a/shell/external_application_registrar_connection.h b/shell/external_application_registrar_connection.h
index fb861eac5113e5690e02a390dc7151fde220257e..14725365c6cde885d765ee9f4c50575fe61d7fa0 100644
--- a/shell/external_application_registrar_connection.h
+++ b/shell/external_application_registrar_connection.h
@@ -19,6 +19,9 @@
#include "url/gurl.h"
namespace mojo {
+
+class Application;
+
namespace shell {
// Externally-running applications can use this class to discover and register
@@ -38,10 +41,12 @@ class ExternalApplicationRegistrarConnection : public ErrorHandler {
// initiated, returning false if it was unable to do so.
bool Connect();
+ using RegisterCallback = base::Callback<void(InterfaceRequest<Application>)>;
+
// Registers this app with the shell at the provided URL.
void Register(const GURL& app_url,
const std::vector<std::string>& args,
- base::Callback<void(ShellPtr)> register_complete_callback);
+ const RegisterCallback& callback);
private:
// Handles the result of Connect(). If it was successful, promotes the socket

Powered by Google App Engine
This is Rietveld 408576698