OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/sessions/session_types.h" | 10 #include "chrome/browser/sessions/session_types.h" |
| 11 #include "content/public/browser/navigation_controller.h" |
11 | 12 |
12 class Browser; | 13 class Browser; |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 class SessionStorageNamespace; | 16 class SessionStorageNamespace; |
16 class WebContents; | 17 class WebContents; |
17 } | 18 } |
18 | 19 |
19 namespace chrome { | 20 namespace chrome { |
20 | 21 |
(...skipping 13 matching lines...) Expand all Loading... |
34 // |navigations| are from the previous session. | 35 // |navigations| are from the previous session. |
35 content::WebContents* AddRestoredTab( | 36 content::WebContents* AddRestoredTab( |
36 Browser* browser, | 37 Browser* browser, |
37 const std::vector<TabNavigation>& navigations, | 38 const std::vector<TabNavigation>& navigations, |
38 int tab_index, | 39 int tab_index, |
39 int selected_navigation, | 40 int selected_navigation, |
40 const std::string& extension_app_id, | 41 const std::string& extension_app_id, |
41 bool select, | 42 bool select, |
42 bool pin, | 43 bool pin, |
43 bool from_last_session, | 44 bool from_last_session, |
44 content::SessionStorageNamespace* storage_namespace); | 45 const content::SessionStorageNamespaceMap& storage_namespace_map); |
45 | 46 |
46 // Replaces the state of the currently selected tab with the session | 47 // Replaces the state of the currently selected tab with the session |
47 // history restored from the SessionRestore system. | 48 // history restored from the SessionRestore system. |
48 void ReplaceRestoredTab( | 49 void ReplaceRestoredTab( |
49 Browser* browser, | 50 Browser* browser, |
50 const std::vector<TabNavigation>& navigations, | 51 const std::vector<TabNavigation>& navigations, |
51 int selected_navigation, | 52 int selected_navigation, |
52 bool from_last_session, | 53 bool from_last_session, |
53 const std::string& extension_app_id, | 54 const std::string& extension_app_id, |
54 content::SessionStorageNamespace* session_storage_namespace); | 55 const content::SessionStorageNamespaceMap& storage_namespace_map); |
55 | 56 |
56 | 57 |
57 } // namespace chrome | 58 } // namespace chrome |
58 | 59 |
59 #endif // CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ | 60 #endif // CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ |
OLD | NEW |