OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ | 5 #ifndef IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ |
6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ | 6 #define IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "components/infobars/core/infobar_manager.h" | 9 #include "components/infobars/core/infobar_manager.h" |
10 #include "ios/web/public/web_state/web_state_observer.h" | 10 #include "ios/web/public/web_state/web_state_observer.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // InfoBarManager implementation. | 39 // InfoBarManager implementation. |
40 int GetActiveEntryID() override; | 40 int GetActiveEntryID() override; |
41 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( | 41 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( |
42 scoped_ptr<ConfirmInfoBarDelegate> delegate) override; | 42 scoped_ptr<ConfirmInfoBarDelegate> delegate) override; |
43 | 43 |
44 // web::WebStateObserver implementation. | 44 // web::WebStateObserver implementation. |
45 void NavigationItemCommitted( | 45 void NavigationItemCommitted( |
46 const web::LoadCommittedDetails& load_details) override; | 46 const web::LoadCommittedDetails& load_details) override; |
47 void WebStateDestroyed() override; | 47 void WebStateDestroyed() override; |
48 | 48 |
| 49 // Opens a URL according to the specified |disposition|. |
| 50 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override; |
| 51 |
49 DISALLOW_COPY_AND_ASSIGN(InfoBarManagerImpl); | 52 DISALLOW_COPY_AND_ASSIGN(InfoBarManagerImpl); |
50 }; | 53 }; |
51 | 54 |
52 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ | 55 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ |
OLD | NEW |