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/content/content_serialized_navigation_builder.h" | 5 #include "components/sessions/content/content_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 "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
9 #include "content/public/browser/favicon_status.h" | 9 #include "content/public/browser/favicon_status.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
11 #include "content/public/browser/navigation_entry.h" | 11 #include "content/public/browser/navigation_entry.h" |
12 #include "content/public/common/page_state.h" | 12 #include "content/public/common/page_state.h" |
13 #include "content/public/common/referrer.h" | 13 #include "content/public/common/referrer.h" |
14 | 14 |
15 namespace sessions { | 15 namespace sessions { |
16 | 16 |
17 // static | 17 // static |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 for (std::vector<SerializedNavigationEntry>::const_iterator | 94 for (std::vector<SerializedNavigationEntry>::const_iterator |
95 it = navigations.begin(); it != navigations.end(); ++it) { | 95 it = navigations.begin(); it != navigations.end(); ++it) { |
96 entries.push_back( | 96 entries.push_back( |
97 ToNavigationEntry(&(*it), page_id, browser_context).release()); | 97 ToNavigationEntry(&(*it), page_id, browser_context).release()); |
98 ++page_id; | 98 ++page_id; |
99 } | 99 } |
100 return entries.Pass(); | 100 return entries.Pass(); |
101 } | 101 } |
102 | 102 |
103 } // namespace sessions | 103 } // namespace sessions |
OLD | NEW |