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 COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_ | 5 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_ |
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_ | 6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "components/sessions/sessions_export.h" | 12 #include "components/sessions/core/sessions_export.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class BrowserContext; | 15 class BrowserContext; |
16 class NavigationEntry; | 16 class NavigationEntry; |
17 } | 17 } |
18 | 18 |
19 namespace sessions { | 19 namespace sessions { |
20 class SerializedNavigationEntry; | 20 class SerializedNavigationEntry; |
21 | 21 |
22 // Provides methods to convert between SerializedNavigationEntry and content | 22 // Provides methods to convert between SerializedNavigationEntry and content |
(...skipping 17 matching lines...) Expand all Loading... |
40 // Converts a set of SerializedNavigationEntrys into a list of | 40 // Converts a set of SerializedNavigationEntrys into a list of |
41 // NavigationEntrys with sequential page IDs and the given context. | 41 // NavigationEntrys with sequential page IDs and the given context. |
42 static ScopedVector<content::NavigationEntry> ToNavigationEntries( | 42 static ScopedVector<content::NavigationEntry> ToNavigationEntries( |
43 const std::vector<SerializedNavigationEntry>& navigations, | 43 const std::vector<SerializedNavigationEntry>& navigations, |
44 content::BrowserContext* browser_context); | 44 content::BrowserContext* browser_context); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace sessions | 47 } // namespace sessions |
48 | 48 |
49 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_ | 49 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_ |
OLD | NEW |