Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: chrome/browser/ui/browser_tabrestore.h

Issue 14497003: Moves TabNavigation into components/sessions and renames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really remove webkit_support Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 11
12 class Browser; 12 class Browser;
13 13
14 namespace content { 14 namespace content {
15 class SessionStorageNamespace; 15 class SessionStorageNamespace;
16 class WebContents; 16 class WebContents;
17 } 17 }
18 18
19 namespace sessions {
20 class SerializedNavigationEntry;
21 }
22
19 namespace chrome { 23 namespace chrome {
20 24
21 // Add a tab with its session history restored from the SessionRestore 25 // Add a tab with its session history restored from the SessionRestore
22 // system. If select is true, the tab is selected. |tab_index| gives the index 26 // system. If select is true, the tab is selected. |tab_index| gives the index
23 // to insert the tab at. |selected_navigation| is the index of the 27 // to insert the tab at. |selected_navigation| is the index of the
24 // TabNavigation in |navigations| to select. If |extension_app_id| is 28 // SerializedNavigationEntry in |navigations| to select. If |extension_app_id|
25 // non-empty the tab is an app tab and |extension_app_id| is the id of the 29 // is non-empty the tab is an app tab and |extension_app_id| is the id of the
26 // extension. If |pin| is true and |tab_index|/ is the last pinned tab, then 30 // extension. If |pin| is true and |tab_index|/ is the last pinned tab, then
27 // the newly created tab is pinned. If |from_last_session| is true, 31 // the newly created tab is pinned. If |from_last_session| is true,
28 // |navigations| are from the previous session. |user_agent_override| contains 32 // |navigations| are from the previous session. |user_agent_override| contains
29 // the string being used as the user agent for all of the tab's navigations when 33 // the string being used as the user agent for all of the tab's navigations when
30 // the regular user agent is overridden. 34 // the regular user agent is overridden.
31 content::WebContents* AddRestoredTab( 35 content::WebContents* AddRestoredTab(
32 Browser* browser, 36 Browser* browser,
33 const std::vector<TabNavigation>& navigations, 37 const std::vector<sessions::SerializedNavigationEntry>& navigations,
34 int tab_index, 38 int tab_index,
35 int selected_navigation, 39 int selected_navigation,
36 const std::string& extension_app_id, 40 const std::string& extension_app_id,
37 bool select, 41 bool select,
38 bool pin, 42 bool pin,
39 bool from_last_session, 43 bool from_last_session,
40 content::SessionStorageNamespace* storage_namespace, 44 content::SessionStorageNamespace* storage_namespace,
41 const std::string& user_agent_override); 45 const std::string& user_agent_override);
42 46
43 // Replaces the state of the currently selected tab with the session 47 // Replaces the state of the currently selected tab with the session
44 // history restored from the SessionRestore system. 48 // history restored from the SessionRestore system.
45 void ReplaceRestoredTab( 49 void ReplaceRestoredTab(
46 Browser* browser, 50 Browser* browser,
47 const std::vector<TabNavigation>& navigations, 51 const std::vector<sessions::SerializedNavigationEntry>& navigations,
48 int selected_navigation, 52 int selected_navigation,
49 bool from_last_session, 53 bool from_last_session,
50 const std::string& extension_app_id, 54 const std::string& extension_app_id,
51 content::SessionStorageNamespace* session_storage_namespace, 55 content::SessionStorageNamespace* session_storage_namespace,
52 const std::string& user_agent_override); 56 const std::string& user_agent_override);
53 57
54 58
55 } // namespace chrome 59 } // namespace chrome
56 60
57 #endif // CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ 61 #endif // CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_tab_restore_service_delegate.cc ('k') | chrome/browser/ui/browser_tabrestore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698