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

Unified Diff: mojo/shell/ui_application_loader_android.h

Issue 741453002: Make sure that Content Handled application can be connected multiple times. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 6 years, 1 month 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: mojo/shell/ui_application_loader_android.h
diff --git a/mojo/shell/ui_application_loader_android.h b/mojo/shell/ui_application_loader_android.h
index 9b8841071e70b1987a65efca06a80e839bd4af01..91d346f57836037e4486cd0083cb3dcfad724d36 100644
--- a/mojo/shell/ui_application_loader_android.h
+++ b/mojo/shell/ui_application_loader_android.h
@@ -29,7 +29,8 @@ class UIApplicationLoader : public ApplicationLoader {
// ApplicationLoader overrides:
void Load(ApplicationManager* manager,
const GURL& url,
- scoped_refptr<LoadCallbacks> callbacks) override;
+ ScopedMessagePipeHandle shell_handle,
+ LoadCallback callback) override;
void OnApplicationError(ApplicationManager* manager,
const GURL& url) override;
@@ -42,7 +43,7 @@ class UIApplicationLoader : public ApplicationLoader {
// isn't thread safe).
void LoadOnUIThread(ApplicationManager* manager,
const GURL& url,
- ScopedMessagePipeHandle* shell_handle);
+ ScopedMessagePipeHandle shell_handle);
void OnApplicationErrorOnUIThread(ApplicationManager* manager,
const GURL& url);
void ShutdownOnUIThread();
@@ -50,9 +51,6 @@ class UIApplicationLoader : public ApplicationLoader {
scoped_ptr<ApplicationLoader> loader_;
shell::Context* context_;
- // Lives on the UI thread. Trivial interface that calls through to |loader_|.
- UILoader* ui_loader_;
-
DISALLOW_COPY_AND_ASSIGN(UIApplicationLoader);
};

Powered by Google App Engine
This is Rietveld 408576698