| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import "../public/interfaces/network/url_loader.mojom" | 5 import "../network/url_loader.mojom" |
| 6 | 6 |
| 7 module mojo.navigation { | 7 module mojo.navigation { |
| 8 | 8 |
| 9 struct NavigationDetails { | 9 struct NavigationDetails { |
| 10 string url; | 10 string url; |
| 11 // TODO(aa): method, data, etc. | 11 // TODO(aa): method, data, etc. |
| 12 }; | 12 }; |
| 13 | 13 |
| 14 struct ResponseDetails { | 14 struct ResponseDetails { |
| 15 // TODO(beng): consider providing access to URLRequest too. Currently it is | 15 // TODO(beng): consider providing access to URLRequest too. Currently it is |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 // by embedders. | 27 // by embedders. |
| 28 // |response_details| can be NULL when a navigation was not the result of a | 28 // |response_details| can be NULL when a navigation was not the result of a |
| 29 // network load. | 29 // network load. |
| 30 interface Navigator { | 30 interface Navigator { |
| 31 Navigate(uint32 node_id, | 31 Navigate(uint32 node_id, |
| 32 NavigationDetails navigation_details, | 32 NavigationDetails navigation_details, |
| 33 ResponseDetails response_details); | 33 ResponseDetails response_details); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } | 36 } |
| OLD | NEW |