| 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 #ifndef IOS_WEB_PUBLIC_WEB_LOAD_COMMITTED_DETAILS_H_ | 5 #ifndef IOS_WEB_PUBLIC_LOAD_COMMITTED_DETAILS_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_LOAD_COMMITTED_DETAILS_H_ | 6 #define IOS_WEB_PUBLIC_LOAD_COMMITTED_DETAILS_H_ |
| 7 | 7 |
| 8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 namespace web { | 10 namespace web { |
| 11 class NavigationItem; | 11 class NavigationItem; |
| 12 | 12 |
| 13 struct LoadCommittedDetails { | 13 struct LoadCommittedDetails { |
| 14 // By default, the item will be filled according to a new main frame | 14 // By default, the item will be filled according to a new main frame |
| 15 // navigation. | 15 // navigation. |
| 16 LoadCommittedDetails(); | 16 LoadCommittedDetails(); |
| 17 | 17 |
| 18 // The committed item. This will be the active item in the controller. | 18 // The committed item. This will be the active item in the controller. |
| 19 web::NavigationItem* item; | 19 web::NavigationItem* item; |
| 20 | 20 |
| 21 // The index of the previously committed navigation item. This will be -1 | 21 // The index of the previously committed navigation item. This will be -1 |
| 22 // if there are no previous items. | 22 // if there are no previous items. |
| 23 int previous_item_index; | 23 int previous_item_index; |
| 24 | 24 |
| 25 // The previous URL that the user was on. This may be empty if none. | 25 // The previous URL that the user was on. This may be empty if none. |
| 26 GURL previous_url; | 26 GURL previous_url; |
| 27 | 27 |
| 28 // True if the navigation was in-page. This means that the active item's | 28 // True if the navigation was in-page. This means that the active item's |
| 29 // URL and the |previous_url| are the same except for reference fragments. | 29 // URL and the |previous_url| are the same except for reference fragments. |
| 30 bool is_in_page; | 30 bool is_in_page; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace web | 33 } // namespace web |
| 34 | 34 |
| 35 #endif // IOS_WEB_PUBLIC_WEB_LOAD_COMMITTED_DETAILS_H_ | 35 #endif // IOS_WEB_PUBLIC_LOAD_COMMITTED_DETAILS_H_ |
| OLD | NEW |