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 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" | 5 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" |
6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
7 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSessionTabHelper); | 11 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSessionTabHelper); |
8 | 12 |
9 IOSChromeSessionTabHelper::IOSChromeSessionTabHelper(web::WebState* web_state) { | 13 IOSChromeSessionTabHelper::IOSChromeSessionTabHelper(web::WebState* web_state) { |
10 } | 14 } |
11 | 15 |
12 IOSChromeSessionTabHelper::~IOSChromeSessionTabHelper() {} | 16 IOSChromeSessionTabHelper::~IOSChromeSessionTabHelper() {} |
13 | 17 |
14 void IOSChromeSessionTabHelper::SetWindowID(const SessionID& id) { | 18 void IOSChromeSessionTabHelper::SetWindowID(const SessionID& id) { |
15 window_id_ = id; | 19 window_id_ = id; |
16 } | 20 } |
OLD | NEW |