X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmojo%2Fservices%2Fpublic%2Finterfaces%2Fnavigation%2Fnavigation.mojom;h=6a9e94f9592cd7a07a93ae5239ed472174e8810c;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=dc565c307edb5c3c1b925ec7da9de56c2b5a4bb5;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/mojo/services/public/interfaces/navigation/navigation.mojom b/src/mojo/services/public/interfaces/navigation/navigation.mojom index dc565c3..6a9e94f 100644 --- a/src/mojo/services/public/interfaces/navigation/navigation.mojom +++ b/src/mojo/services/public/interfaces/navigation/navigation.mojom @@ -18,41 +18,13 @@ enum Target { NEW_NODE }; -struct NavigationDetails { - // TODO(mpcomplete): will we ever need more than the URLRequest? Can - // we pass that around directly? - URLRequest request = default; -}; - -struct ResponseDetails { - // TODO(beng): consider providing access to URLRequest too. Currently it is - // not possible to obtain from the URLLoader. - - URLResponse response; - - // The URLLoader instance that generated the response. This must be kept - // alive until the response body has been completely consumed. - URLLoader loader; -}; - // Embedders that support navigation of implement this interface. interface NavigatorHost { - RequestNavigate(uint32 source_node_id, Target target, - NavigationDetails details); + RequestNavigate(Target target, URLRequest request); // Applications call this to inform hosts of navigations they performed // locally. For example, pushState() navigations in an HTML application. - DidNavigateLocally(uint32 source_node_id, string url); -}; - -// 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 navigation_details, - ResponseDetails response_details); + DidNavigateLocally(string url); }; }