| 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 #include "components/sessions/ios/ios_serialized_navigation_builder.h" | 5 #include "components/sessions/ios/ios_serialized_navigation_builder.h" |
| 6 | 6 |
| 7 #include "components/sessions/serialized_navigation_entry.h" | 7 #include "components/sessions/core/serialized_navigation_entry.h" |
| 8 #include "ios/web/public/favicon_status.h" | 8 #include "ios/web/public/favicon_status.h" |
| 9 #include "ios/web/public/navigation_item.h" | 9 #include "ios/web/public/navigation_item.h" |
| 10 #include "ios/web/public/referrer.h" | 10 #include "ios/web/public/referrer.h" |
| 11 | 11 |
| 12 namespace sessions { | 12 namespace sessions { |
| 13 | 13 |
| 14 // static | 14 // static |
| 15 SerializedNavigationEntry | 15 SerializedNavigationEntry |
| 16 IOSSerializedNavigationBuilder::FromNavigationItem( | 16 IOSSerializedNavigationBuilder::FromNavigationItem( |
| 17 int index, const web::NavigationItem& item) { | 17 int index, const web::NavigationItem& item) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 item->SetTimestamp(navigation->timestamp_); | 45 item->SetTimestamp(navigation->timestamp_); |
| 46 | 46 |
| 47 if (navigation->favicon_url_.is_valid()) { | 47 if (navigation->favicon_url_.is_valid()) { |
| 48 item->GetFavicon().url = navigation->favicon_url_; | 48 item->GetFavicon().url = navigation->favicon_url_; |
| 49 } | 49 } |
| 50 | 50 |
| 51 return item.Pass(); | 51 return item.Pass(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace sessions | 54 } // namespace sessions |
| OLD | NEW |