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