| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void SetTabIndexInWindow(const SessionID& window_id, | 103 void SetTabIndexInWindow(const SessionID& window_id, |
| 104 const SessionID& tab_id, | 104 const SessionID& tab_id, |
| 105 int new_index); | 105 int new_index); |
| 106 | 106 |
| 107 // Sets the pinned state of the tab. | 107 // Sets the pinned state of the tab. |
| 108 void SetPinnedState(const SessionID& window_id, | 108 void SetPinnedState(const SessionID& window_id, |
| 109 const SessionID& tab_id, | 109 const SessionID& tab_id, |
| 110 bool is_pinned); | 110 bool is_pinned); |
| 111 | 111 |
| 112 // Notification that a tab has been closed. |closed_by_user_gesture| comes | 112 // Notification that a tab has been closed. |closed_by_user_gesture| comes |
| 113 // from |TabContents::closed_by_user_gesture|; see it for details. | 113 // from |WebContents::closed_by_user_gesture|; see it for details. |
| 114 // | 114 // |
| 115 // Note: this is invoked from the NavigationController's destructor, which is | 115 // Note: this is invoked from the NavigationController's destructor, which is |
| 116 // after the actual tab has been removed. | 116 // after the actual tab has been removed. |
| 117 void TabClosed(const SessionID& window_id, | 117 void TabClosed(const SessionID& window_id, |
| 118 const SessionID& tab_id, | 118 const SessionID& tab_id, |
| 119 bool closed_by_user_gesture); | 119 bool closed_by_user_gesture); |
| 120 | 120 |
| 121 // Notification the window is about to close. | 121 // Notification the window is about to close. |
| 122 void WindowClosing(const SessionID& window_id); | 122 void WindowClosing(const SessionID& window_id); |
| 123 | 123 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 459 |
| 460 // Constants used in calculating histogram data. | 460 // Constants used in calculating histogram data. |
| 461 const base::TimeDelta save_delay_in_millis_; | 461 const base::TimeDelta save_delay_in_millis_; |
| 462 const base::TimeDelta save_delay_in_mins_; | 462 const base::TimeDelta save_delay_in_mins_; |
| 463 const base::TimeDelta save_delay_in_hrs_; | 463 const base::TimeDelta save_delay_in_hrs_; |
| 464 | 464 |
| 465 DISALLOW_COPY_AND_ASSIGN(SessionService); | 465 DISALLOW_COPY_AND_ASSIGN(SessionService); |
| 466 }; | 466 }; |
| 467 | 467 |
| 468 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 468 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
| OLD | NEW |