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

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

Issue 10850010: Make session restore understand that tabs have multiple SessionStorageNamespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: attempt to fix unittsets. Created 8 years, 4 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 #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 WebContents; 16 class WebContents;
17 } 17 }
18 18
19 namespace chrome { 19 namespace chrome {
20 20
21 // Returns the index to insert a tab at during session restore and startup. 21 // Returns the index to insert a tab at during session restore and startup.
22 // |relative_index| gives the index of the url into the number of tabs that 22 // |relative_index| gives the index of the url into the number of tabs that
23 // are going to be opened. For example, if three urls are passed in on the 23 // are going to be opened. For example, if three urls are passed in on the
24 // command line this is invoked three times with the values 0, 1 and 2. 24 // command line this is invoked three times with the values 0, 1 and 2.
25 int GetIndexForInsertionDuringRestore(Browser* browser, int relative_index); 25 int GetIndexForInsertionDuringRestore(Browser* browser, int relative_index);
(...skipping 10 matching lines...) Expand all
36 // the regular user agent is overridden. 36 // the regular user agent is overridden.
37 content::WebContents* AddRestoredTab( 37 content::WebContents* AddRestoredTab(
38 Browser* browser, 38 Browser* browser,
39 const std::vector<TabNavigation>& navigations, 39 const std::vector<TabNavigation>& navigations,
40 int tab_index, 40 int tab_index,
41 int selected_navigation, 41 int selected_navigation,
42 const std::string& extension_app_id, 42 const std::string& extension_app_id,
43 bool select, 43 bool select,
44 bool pin, 44 bool pin,
45 bool from_last_session, 45 bool from_last_session,
46 content::SessionStorageNamespace* storage_namespace, 46 const content::SessionStorageNamespaceMap& storage_namespace_map,
47 const std::string& user_agent_override); 47 const std::string& user_agent_override);
48 48
49 // Replaces the state of the currently selected tab with the session 49 // Replaces the state of the currently selected tab with the session
50 // history restored from the SessionRestore system. 50 // history restored from the SessionRestore system.
51 void ReplaceRestoredTab( 51 void ReplaceRestoredTab(
52 Browser* browser, 52 Browser* browser,
53 const std::vector<TabNavigation>& navigations, 53 const std::vector<TabNavigation>& navigations,
54 int selected_navigation, 54 int selected_navigation,
55 bool from_last_session, 55 bool from_last_session,
56 const std::string& extension_app_id, 56 const std::string& extension_app_id,
57 content::SessionStorageNamespace* session_storage_namespace, 57 const content::SessionStorageNamespaceMap& storage_namespace_map,
58 const std::string& user_agent_override); 58 const std::string& user_agent_override);
59 59
60 60
61 } // namespace chrome 61 } // namespace chrome
62 62
63 #endif // CHROME_BROWSER_UI_BROWSER_TABRESTORE_H_ 63 #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