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/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "components/infobars/core/infobar_manager.h" | 10 #include "components/infobars/core/infobar_manager.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 private: | 34 private: |
35 friend class web::WebStateUserData<InfoBarManagerImpl>; | 35 friend class web::WebStateUserData<InfoBarManagerImpl>; |
36 | 36 |
37 explicit InfoBarManagerImpl(web::WebState* web_state); | 37 explicit InfoBarManagerImpl(web::WebState* web_state); |
38 ~InfoBarManagerImpl() override; | 38 ~InfoBarManagerImpl() override; |
39 | 39 |
40 // InfoBarManager implementation. | 40 // InfoBarManager implementation. |
41 int GetActiveEntryID() override; | 41 int GetActiveEntryID() override; |
42 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( | 42 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( |
43 scoped_ptr<ConfirmInfoBarDelegate> delegate) override; | 43 scoped_ptr<ConfirmInfoBarDelegate> delegate) override; |
| 44 scoped_ptr<infobars::InfoBar> CreateAutofillCCInfoBar( |
| 45 scoped_ptr<autofill::AutofillCCInfoBarDelegate> delegate) override; |
44 | 46 |
45 // web::WebStateObserver implementation. | 47 // web::WebStateObserver implementation. |
46 void NavigationItemCommitted( | 48 void NavigationItemCommitted( |
47 const web::LoadCommittedDetails& load_details) override; | 49 const web::LoadCommittedDetails& load_details) override; |
48 void WebStateDestroyed() override; | 50 void WebStateDestroyed() override; |
49 | 51 |
50 // Opens a URL according to the specified |disposition|. | 52 // Opens a URL according to the specified |disposition|. |
51 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override; | 53 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override; |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(InfoBarManagerImpl); | 55 DISALLOW_COPY_AND_ASSIGN(InfoBarManagerImpl); |
54 }; | 56 }; |
55 | 57 |
56 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ | 58 #endif // IOS_CHROME_BROWSER_INFOBARS_INFOBAR_MANAGER_IMPL_H_ |
OLD | NEW |