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_TABS_FAKE_WEB_STATE_LIST_DELEGATE_H_ | 5 #ifndef IOS_SHARED_CHROME_BROWSER_TABS_FAKE_WEB_STATE_LIST_DELEGATE_H_ |
6 #define IOS_SHARED_CHROME_BROWSER_TABS_FAKE_WEB_STATE_LIST_DELEGATE_H_ | 6 #define IOS_SHARED_CHROME_BROWSER_TABS_FAKE_WEB_STATE_LIST_DELEGATE_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 // Fake WebStateList delegate for tests. | 11 // Fake WebStateList delegate for tests. |
12 class FakeWebStateListDelegate : public WebStateListDelegate { | 12 class FakeWebStateListDelegate : public WebStateListDelegate { |
13 public: | 13 public: |
14 FakeWebStateListDelegate(); | 14 FakeWebStateListDelegate(); |
15 ~FakeWebStateListDelegate() override; | 15 ~FakeWebStateListDelegate() override; |
16 | 16 |
17 // WebStateListDelegate implementation. | 17 // WebStateListDelegate implementation. |
18 void WillAddWebState(web::WebState* web_state) override; | 18 void WillAddWebState(web::WebState* web_state) override; |
| 19 void WebStateDetached(web::WebState* web_state) override; |
19 | 20 |
20 private: | 21 private: |
21 DISALLOW_COPY_AND_ASSIGN(FakeWebStateListDelegate); | 22 DISALLOW_COPY_AND_ASSIGN(FakeWebStateListDelegate); |
22 }; | 23 }; |
23 | 24 |
24 #endif // IOS_SHARED_CHROME_BROWSER_TABS_FAKE_WEB_STATE_LIST_DELEGATE_H_ | 25 #endif // IOS_SHARED_CHROME_BROWSER_TABS_FAKE_WEB_STATE_LIST_DELEGATE_H_ |
OLD | NEW |