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

Side by Side Diff: chrome/browser/sessions/tab_restore_service.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
« no previous file with comments | « chrome/browser/sessions/session_types.h ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SESSIONS_TAB_RESTORE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "chrome/browser/sessions/base_session_service.h" 15 #include "chrome/browser/sessions/base_session_service.h"
16 #include "chrome/browser/sessions/session_id.h" 16 #include "chrome/browser/sessions/session_id.h"
17 #include "chrome/browser/sessions/session_types.h" 17 #include "chrome/browser/sessions/session_types.h"
18 #include "content/public/browser/navigation_controller.h"
18 #include "content/public/browser/session_storage_namespace.h" 19 #include "content/public/browser/session_storage_namespace.h"
19 #include "webkit/glue/window_open_disposition.h" 20 #include "webkit/glue/window_open_disposition.h"
20 21
21 class Profile; 22 class Profile;
22 class TabRestoreServiceDelegate; 23 class TabRestoreServiceDelegate;
23 class TabRestoreServiceObserver; 24 class TabRestoreServiceObserver;
24 struct SessionWindow; 25 struct SessionWindow;
25 26
26 namespace content { 27 namespace content {
27 class NavigationController; 28 class NavigationController;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 96
96 // Index within the tab strip. May be -1 for an unknown index. 97 // Index within the tab strip. May be -1 for an unknown index.
97 int tabstrip_index; 98 int tabstrip_index;
98 99
99 // True if the tab was pinned. 100 // True if the tab was pinned.
100 bool pinned; 101 bool pinned;
101 102
102 // If non-empty gives the id of the extension for the tab. 103 // If non-empty gives the id of the extension for the tab.
103 std::string extension_app_id; 104 std::string extension_app_id;
104 105
105 // The associated session storage namespace (if any). 106 // The associated session storage namespaces (if any).
106 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace; 107 content::SessionStorageNamespaceMap session_storage_namespace_map;
107 108
108 // The user agent override used for the tab's navigations (if applicable). 109 // The user agent override used for the tab's navigations (if applicable).
109 std::string user_agent_override; 110 std::string user_agent_override;
110 }; 111 };
111 112
112 // Represents a previously open window. 113 // Represents a previously open window.
113 struct Window : public Entry { 114 struct Window : public Entry {
114 Window(); 115 Window();
115 virtual ~Window(); 116 virtual ~Window();
116 117
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // loading LoadStateChanged is invoked, which adds these entries to 380 // loading LoadStateChanged is invoked, which adds these entries to
380 // entries_. 381 // entries_.
381 std::vector<Entry*> staging_entries_; 382 std::vector<Entry*> staging_entries_;
382 383
383 TimeFactory* time_factory_; 384 TimeFactory* time_factory_;
384 385
385 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); 386 DISALLOW_COPY_AND_ASSIGN(TabRestoreService);
386 }; 387 };
387 388
388 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 389 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types.h ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698