OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ |
6 #define CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ | 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 return content::WebContentsObserver::web_contents(); | 39 return content::WebContentsObserver::web_contents(); |
40 } | 40 } |
41 | 41 |
42 private: | 42 private: |
43 friend class content::WebContentsUserData<InfoBarService>; | 43 friend class content::WebContentsUserData<InfoBarService>; |
44 | 44 |
45 explicit InfoBarService(content::WebContents* web_contents); | 45 explicit InfoBarService(content::WebContents* web_contents); |
46 virtual ~InfoBarService(); | 46 virtual ~InfoBarService(); |
47 | 47 |
48 // InfoBarManager: | 48 // InfoBarManager: |
| 49 virtual int GetActiveEntryID() OVERRIDE; |
49 // TODO(droger): Remove these functions once infobar notifications are | 50 // TODO(droger): Remove these functions once infobar notifications are |
50 // removed. See http://crbug.com/354380 | 51 // removed. See http://crbug.com/354380 |
51 virtual void NotifyInfoBarAdded(InfoBar* infobar) OVERRIDE; | 52 virtual void NotifyInfoBarAdded(InfoBar* infobar) OVERRIDE; |
52 virtual void NotifyInfoBarRemoved(InfoBar* infobar, bool animate) OVERRIDE; | 53 virtual void NotifyInfoBarRemoved(InfoBar* infobar, bool animate) OVERRIDE; |
53 virtual void NotifyInfoBarReplaced(InfoBar* old_infobar, | 54 virtual void NotifyInfoBarReplaced(InfoBar* old_infobar, |
54 InfoBar* new_infobar) OVERRIDE; | 55 InfoBar* new_infobar) OVERRIDE; |
55 | 56 |
56 // content::WebContentsObserver: | 57 // content::WebContentsObserver: |
57 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 58 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
58 virtual void NavigationEntryCommitted( | 59 virtual void NavigationEntryCommitted( |
59 const content::LoadCommittedDetails& load_details) OVERRIDE; | 60 const content::LoadCommittedDetails& load_details) OVERRIDE; |
60 virtual void WebContentsDestroyed( | 61 virtual void WebContentsDestroyed( |
61 content::WebContents* web_contents) OVERRIDE; | 62 content::WebContents* web_contents) OVERRIDE; |
62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 63 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
63 | 64 |
64 // Message handlers. | 65 // Message handlers. |
65 void OnDidBlockDisplayingInsecureContent(); | 66 void OnDidBlockDisplayingInsecureContent(); |
66 void OnDidBlockRunningInsecureContent(); | 67 void OnDidBlockRunningInsecureContent(); |
67 | 68 |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(InfoBarService); | 70 DISALLOW_COPY_AND_ASSIGN(InfoBarService); |
70 }; | 71 }; |
71 | 72 |
72 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ | 73 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ |
OLD | NEW |