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

Unified Diff: mojo/services/public/interfaces/launcher/launcher.mojom

Issue 345773003: Mojo: teach launcher about mojo:// URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, add comments Created 6 years, 6 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/services/launcher/launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/public/interfaces/launcher/launcher.mojom
diff --git a/mojo/services/public/interfaces/launcher/launcher.mojom b/mojo/services/public/interfaces/launcher/launcher.mojom
index 9d04361f5a3be9a40c4472d57d49cdb2b9481fa7..e35eb6746aca91a3d95a9124399b8dfce0d81a11 100644
--- a/mojo/services/public/interfaces/launcher/launcher.mojom
+++ b/mojo/services/public/interfaces/launcher/launcher.mojom
@@ -2,19 +2,35 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import "../network/url_loader.mojom"
+import "../navigation/navigation.mojom"
module mojo.launcher {
[Client=LauncherClient]
interface Launcher {
+ // Determines the correct handler application that can render a given URL.
+ //
+ // Sometimes this is known statically from the URL (e.g., from its scheme, or
+ // because we already have an application locally that has said it can handle
+ // the URL. Other times, we will actually fetch |url| to examine its
+ // content-type and/or sniff it to determine the correct handler.
Launch(string url);
};
[Client=Launcher]
interface LauncherClient {
- OnLaunch(string handler_url, mojo.URLResponse response,
- handle<data_pipe_consumer> response_body_stream);
+ // Called when a handler has been resolved in response to Launch(). Receiving
+ // application should connect to the application at |handler_url| and navigate
+ // it to |view_url|.
+ //
+ // Note: |view_url| might not be the same as the URL that was initially
+ // requested, e.g., in the case of redirects. Applications should always
+ // navigate to view_url, not the initial URL.
+ //
+ // Note: |response| can be NULL in the case where a request was not needed to
+ // determine the correct handler.
+ OnLaunch(string handler_url, string view_url,
darin (slow to review) 2014/06/20 15:12:37 The final URL of the redirect chain is also stored
Aaron Boodman 2014/06/20 16:09:32 In the case where a request was performed, yes. Bu
+ mojo.navigation.ResponseDetails response);
};
}
« no previous file with comments | « mojo/services/launcher/launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698