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_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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool pinned; | 98 bool pinned; |
99 | 99 |
100 // If non-empty gives the id of the extension for the tab. | 100 // If non-empty gives the id of the extension for the tab. |
101 std::string extension_app_id; | 101 std::string extension_app_id; |
102 | 102 |
103 // The associated session storage namespace (if any). | 103 // The associated session storage namespace (if any). |
104 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace; | 104 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace; |
105 | 105 |
106 // The user agent override used for the tab's navigations (if applicable). | 106 // The user agent override used for the tab's navigations (if applicable). |
107 std::string user_agent_override; | 107 std::string user_agent_override; |
| 108 |
| 109 int64 sync_session_id; |
108 }; | 110 }; |
109 | 111 |
110 // Represents a previously open window. | 112 // Represents a previously open window. |
111 struct Window : public Entry { | 113 struct Window : public Entry { |
112 Window(); | 114 Window(); |
113 virtual ~Window(); | 115 virtual ~Window(); |
114 | 116 |
115 // The tabs that comprised the window, in order. | 117 // The tabs that comprised the window, in order. |
116 std::vector<Tab> tabs; | 118 std::vector<Tab> tabs; |
117 | 119 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 virtual void LoadTabsFromLastSession() = 0; | 182 virtual void LoadTabsFromLastSession() = 0; |
181 | 183 |
182 // Returns true if the tab entries have been loaded. | 184 // Returns true if the tab entries have been loaded. |
183 virtual bool IsLoaded() const = 0; | 185 virtual bool IsLoaded() const = 0; |
184 | 186 |
185 // Deletes the last session. | 187 // Deletes the last session. |
186 virtual void DeleteLastSession() = 0; | 188 virtual void DeleteLastSession() = 0; |
187 }; | 189 }; |
188 | 190 |
189 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 191 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
OLD | NEW |