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_SESSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 int index); | 248 int index); |
249 | 249 |
250 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, | 250 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, |
251 WindowType type); | 251 WindowType type); |
252 | 252 |
253 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id, | 253 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id, |
254 bool is_pinned); | 254 bool is_pinned); |
255 | 255 |
256 SessionCommand* CreateSessionStorageAssociatedCommand( | 256 SessionCommand* CreateSessionStorageAssociatedCommand( |
257 const SessionID& tab_id, | 257 const SessionID& tab_id, |
258 const std::string& session_storage_persistent_id); | 258 const std::string& session_storage_persistent_id, |
| 259 const std::string& partition_id); |
259 | 260 |
260 // Callback from the backend for getting the commands from the save file. | 261 // Callback from the backend for getting the commands from the save file. |
261 // Converts the commands in SessionWindows and notifies the real callback. | 262 // Converts the commands in SessionWindows and notifies the real callback. |
262 void OnGotSessionCommands( | 263 void OnGotSessionCommands( |
263 Handle handle, | 264 Handle handle, |
264 scoped_refptr<InternalGetCommandsRequest> request); | 265 scoped_refptr<InternalGetCommandsRequest> request); |
265 | 266 |
266 // Converts the commands into SessionWindows. On return any valid | 267 // Converts the commands into SessionWindows. On return any valid |
267 // windows are added to valid_windows. It is up to the caller to delete | 268 // windows are added to valid_windows. It is up to the caller to delete |
268 // the windows added to valid_windows. | 269 // the windows added to valid_windows. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 const base::TimeDelta save_delay_in_hrs_; | 473 const base::TimeDelta save_delay_in_hrs_; |
473 | 474 |
474 // For browser_tests, since we want to simulate the browser shutting down | 475 // For browser_tests, since we want to simulate the browser shutting down |
475 // without quitting. | 476 // without quitting. |
476 bool force_browser_not_alive_with_no_windows_; | 477 bool force_browser_not_alive_with_no_windows_; |
477 | 478 |
478 DISALLOW_COPY_AND_ASSIGN(SessionService); | 479 DISALLOW_COPY_AND_ASSIGN(SessionService); |
479 }; | 480 }; |
480 | 481 |
481 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 482 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |