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

Unified Diff: mojo/services/navigation/navigation.mojom

Issue 331323007: Eliminate Launchable. Use Navigator instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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') | mojo/services/public/interfaces/launcher/launcher.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/navigation/navigation.mojom
diff --git a/mojo/services/navigation/navigation.mojom b/mojo/services/navigation/navigation.mojom
index f9039d640c6d030e494dc36697f3dae13ebb83ce..34c82a6b31945c3e8f1683d57bb8ed277e13dcb7 100644
--- a/mojo/services/navigation/navigation.mojom
+++ b/mojo/services/navigation/navigation.mojom
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import "../public/interfaces/network/url_loader.mojom"
+
module mojo.navigation {
struct NavigationDetails {
@@ -9,10 +11,21 @@ struct NavigationDetails {
// TODO(aa): method, data, etc.
};
+struct ResponseDetails {
+ // TODO(beng): consider providing access to URLRequest too. Currently it is
+ // not possible to obtain from the URLLoader.
+ mojo.URLResponse response;
+ handle<data_pipe_consumer> response_body_stream;
+};
+
// Applications implement this interface to support navigation of their views
// by embedders.
+// |response_details| can be NULL when a navigation was not the result of a
+// network load.
interface Navigator {
- Navigate(uint32 node_id, NavigationDetails details);
+ Navigate(uint32 node_id,
+ NavigationDetails navigation_details,
+ ResponseDetails response_details);
};
}
« no previous file with comments | « mojo/services/launcher/launcher.cc ('k') | mojo/services/public/interfaces/launcher/launcher.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698