| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_WEB_STATE_LIST_DELEGAT
E_H_ | 5 #ifndef IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_WEB_STATE_LIST_DELEGAT
E_H_ |
| 6 #define IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_WEB_STATE_LIST_DELEGAT
E_H_ | 6 #define IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_WEB_STATE_LIST_DELEGAT
E_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #import "ios/shared/chrome/browser/tabs/web_state_list_delegate.h" | 9 #import "ios/shared/chrome/browser/tabs/web_state_list_delegate.h" |
| 10 | 10 |
| 11 class Browser; | 11 class Browser; |
| 12 | 12 |
| 13 // WebStateList delegate for the new architecture. | 13 // WebStateList delegate for the new architecture. |
| 14 class BrowserWebStateListDelegate : public WebStateListDelegate { | 14 class BrowserWebStateListDelegate : public WebStateListDelegate { |
| 15 public: | 15 public: |
| 16 explicit BrowserWebStateListDelegate(Browser* browser); | 16 explicit BrowserWebStateListDelegate(Browser* browser); |
| 17 ~BrowserWebStateListDelegate() override; | 17 ~BrowserWebStateListDelegate() override; |
| 18 | 18 |
| 19 // WebStateListDelegate implementation. | 19 // WebStateListDelegate implementation. |
| 20 void WillAddWebState(web::WebState* web_state) override; | 20 void WillAddWebState(web::WebState* web_state) override; |
| 21 void WebStateDetached(web::WebState* web_state) override; |
| 21 | 22 |
| 22 private: | 23 private: |
| 23 Browser* browser_; | 24 Browser* browser_; |
| 24 | 25 |
| 25 DISALLOW_COPY_AND_ASSIGN(BrowserWebStateListDelegate); | 26 DISALLOW_COPY_AND_ASSIGN(BrowserWebStateListDelegate); |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 #endif // IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_WEB_STATE_LIST_DELE
GATE_H_ | 29 #endif // IOS_SHARED_CHROME_BROWSER_UI_BROWSER_LIST_BROWSER_WEB_STATE_LIST_DELE
GATE_H_ |
| OLD | NEW |