Chromium Code Reviews| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "components/sessions/ios/ios_live_tab.h" | 9 #include "components/sessions/ios/ios_live_tab.h" |
| 10 #include "ios/chrome/browser/application_context.h" | 10 #include "ios/chrome/browser/application_context.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 } // namespace | 64 } // namespace |
| 65 | 65 |
| 66 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( | 66 IOSChromeTabRestoreServiceClient::IOSChromeTabRestoreServiceClient( |
| 67 ios::ChromeBrowserState* browser_state) | 67 ios::ChromeBrowserState* browser_state) |
| 68 : browser_state_(browser_state) {} | 68 : browser_state_(browser_state) {} |
| 69 | 69 |
| 70 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} | 70 IOSChromeTabRestoreServiceClient::~IOSChromeTabRestoreServiceClient() {} |
| 71 | 71 |
| 72 sessions::LiveTabContext* | 72 sessions::LiveTabContext* |
| 73 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( | 73 IOSChromeTabRestoreServiceClient::CreateLiveTabContext( |
| 74 const std::string& app_name) { | 74 const std::string& unused_app_name, |
|
sky
2017/07/11 20:28:09
Parameters should match that of the header.
chrisha
2017/08/14 14:43:21
I'm generally in favor of that, but I suppose I se
| |
| 75 const gfx::Rect& unused_bounds, | |
| 76 ui::WindowShowState unused_show_state, | |
| 77 const std::string& unused_workspace) { | |
| 75 return TabRestoreServiceDelegateImplIOSFactory::GetForBrowserState( | 78 return TabRestoreServiceDelegateImplIOSFactory::GetForBrowserState( |
| 76 browser_state_); | 79 browser_state_); |
| 77 } | 80 } |
| 78 | 81 |
| 79 sessions::LiveTabContext* | 82 sessions::LiveTabContext* |
| 80 IOSChromeTabRestoreServiceClient::FindLiveTabContextForTab( | 83 IOSChromeTabRestoreServiceClient::FindLiveTabContextForTab( |
| 81 const sessions::LiveTab* tab) { | 84 const sessions::LiveTab* tab) { |
| 82 const sessions::IOSLiveTab* requested_tab = | 85 const sessions::IOSLiveTab* requested_tab = |
| 83 static_cast<const sessions::IOSLiveTab*>(tab); | 86 static_cast<const sessions::IOSLiveTab*>(tab); |
| 84 | 87 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 | 139 |
| 137 bool IOSChromeTabRestoreServiceClient::HasLastSession() { | 140 bool IOSChromeTabRestoreServiceClient::HasLastSession() { |
| 138 return false; | 141 return false; |
| 139 } | 142 } |
| 140 | 143 |
| 141 void IOSChromeTabRestoreServiceClient::GetLastSession( | 144 void IOSChromeTabRestoreServiceClient::GetLastSession( |
| 142 const sessions::GetLastSessionCallback& callback, | 145 const sessions::GetLastSessionCallback& callback, |
| 143 base::CancelableTaskTracker* tracker) { | 146 base::CancelableTaskTracker* tracker) { |
| 144 NOTREACHED(); | 147 NOTREACHED(); |
| 145 } | 148 } |
| OLD | NEW |