| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_SESSIONS_IOS_CHROME_SESSION_TAB_HELPER_H_ | 5 #ifndef IOS_CHROME_BROWSER_SESSIONS_IOS_CHROME_SESSION_TAB_HELPER_H_ |
| 6 #define IOS_CHROME_BROWSER_SESSIONS_IOS_CHROME_SESSION_TAB_HELPER_H_ | 6 #define IOS_CHROME_BROWSER_SESSIONS_IOS_CHROME_SESSION_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "components/sessions/session_id.h" | 9 #include "components/sessions/core/session_id.h" |
| 10 #include "ios/web/public/web_state/web_state_user_data.h" | 10 #include "ios/web/public/web_state/web_state_user_data.h" |
| 11 | 11 |
| 12 class IOSChromeSessionTabHelper | 12 class IOSChromeSessionTabHelper |
| 13 : public web::WebStateUserData<IOSChromeSessionTabHelper> { | 13 : public web::WebStateUserData<IOSChromeSessionTabHelper> { |
| 14 public: | 14 public: |
| 15 ~IOSChromeSessionTabHelper() override; | 15 ~IOSChromeSessionTabHelper() override; |
| 16 | 16 |
| 17 // Returns the identifier used by session restore for this tab. | 17 // Returns the identifier used by session restore for this tab. |
| 18 const SessionID& session_id() const { return session_id_; } | 18 const SessionID& session_id() const { return session_id_; } |
| 19 | 19 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 30 // sessions. | 30 // sessions. |
| 31 const SessionID session_id_; | 31 const SessionID session_id_; |
| 32 | 32 |
| 33 // Unique identifier of the window the tab is in. | 33 // Unique identifier of the window the tab is in. |
| 34 SessionID window_id_; | 34 SessionID window_id_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(IOSChromeSessionTabHelper); | 36 DISALLOW_COPY_AND_ASSIGN(IOSChromeSessionTabHelper); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // IOS_CHROME_BROWSER_SESSIONS_IOS_CHROME_SESSION_TAB_HELPER_H_ | 39 #endif // IOS_CHROME_BROWSER_SESSIONS_IOS_CHROME_SESSION_TAB_HELPER_H_ |
| OLD | NEW |