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_tab_restore_service_client.h" | 5 #include "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_client.h" |
6 | 6 |
7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 7 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
8 #include "ios/chrome/browser/chrome_url_constants.h" | 8 #include "ios/chrome/browser/chrome_url_constants.h" |
9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 9 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
10 #include "ios/public/provider/chrome/browser/sessions/live_tab_context_provider.
h" | 10 #include "ios/public/provider/chrome/browser/sessions/live_tab_context_provider.
h" |
11 #include "ios/web/public/web_thread.h" | 11 #include "ios/web/public/web_thread.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
| 14 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 15 #error "This file requires ARC support." |
| 16 #endif |
| 17 |
14 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( | 18 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( |
15 ios::ChromeBrowserState* browser_state) | 19 ios::ChromeBrowserState* browser_state) |
16 : browser_state_(browser_state) {} | 20 : browser_state_(browser_state) {} |
17 | 21 |
18 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} | 22 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} |
19 | 23 |
20 sessions::LiveTabContext* | 24 sessions::LiveTabContext* |
21 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( | 25 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( |
22 const std::string& app_name) { | 26 const std::string& app_name) { |
23 return ios::GetChromeBrowserProvider()->GetLiveTabContextProvider()->Create( | 27 return ios::GetChromeBrowserProvider()->GetLiveTabContextProvider()->Create( |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 76 |
73 bool IOSChromeTabRestoreServiceClient::HasLastSession() { | 77 bool IOSChromeTabRestoreServiceClient::HasLastSession() { |
74 return false; | 78 return false; |
75 } | 79 } |
76 | 80 |
77 void IOSChromeTabRestoreServiceClient::GetLastSession( | 81 void IOSChromeTabRestoreServiceClient::GetLastSession( |
78 const sessions::GetLastSessionCallback& callback, | 82 const sessions::GetLastSessionCallback& callback, |
79 base::CancelableTaskTracker* tracker) { | 83 base::CancelableTaskTracker* tracker) { |
80 NOTREACHED(); | 84 NOTREACHED(); |
81 } | 85 } |
OLD | NEW |