OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 SessionCommand* CreateSetSelectedNavigationIndexCommand( | 233 SessionCommand* CreateSetSelectedNavigationIndexCommand( |
234 const SessionID& tab_id, | 234 const SessionID& tab_id, |
235 int index); | 235 int index); |
236 | 236 |
237 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, | 237 SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id, |
238 WindowType type); | 238 WindowType type); |
239 | 239 |
240 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id, | 240 SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id, |
241 bool is_pinned); | 241 bool is_pinned); |
242 | 242 |
243 // Callback form the backend for getting the commands from the previous | 243 // Callback from the backend for getting the commands from the previous |
244 // or save file. Converts the commands in SessionWindows and notifies | 244 // or save file. Converts the commands in SessionWindows and notifies |
245 // the real callback. | 245 // the real callback. |
246 void OnGotSessionCommands( | 246 void OnGotSessionCommands( |
247 Handle handle, | 247 Handle handle, |
248 scoped_refptr<InternalGetCommandsRequest> request); | 248 scoped_refptr<InternalGetCommandsRequest> request); |
249 | 249 |
250 // Converts the commands into SessionWindows. On return any valid | 250 // Converts the commands into SessionWindows. On return any valid |
251 // windows are added to valid_windows. It is up to the caller to delete | 251 // windows are added to valid_windows. It is up to the caller to delete |
252 // the windows added to valid_windows. | 252 // the windows added to valid_windows. |
253 // | 253 // |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 452 |
453 // Constants used in calculating histogram data. | 453 // Constants used in calculating histogram data. |
454 const base::TimeDelta save_delay_in_millis_; | 454 const base::TimeDelta save_delay_in_millis_; |
455 const base::TimeDelta save_delay_in_mins_; | 455 const base::TimeDelta save_delay_in_mins_; |
456 const base::TimeDelta save_delay_in_hrs_; | 456 const base::TimeDelta save_delay_in_hrs_; |
457 | 457 |
458 DISALLOW_COPY_AND_ASSIGN(SessionService); | 458 DISALLOW_COPY_AND_ASSIGN(SessionService); |
459 }; | 459 }; |
460 | 460 |
461 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 461 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |