| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 explicit InfoBarService(content::WebContents* web_contents); | 51 explicit InfoBarService(content::WebContents* web_contents); |
| 52 ~InfoBarService() override; | 52 ~InfoBarService() override; |
| 53 | 53 |
| 54 // InfoBarManager: | 54 // InfoBarManager: |
| 55 int GetActiveEntryID() override; | 55 int GetActiveEntryID() override; |
| 56 // TODO(droger): Remove these functions once infobar notifications are | 56 // TODO(droger): Remove these functions once infobar notifications are |
| 57 // removed. See http://crbug.com/354380 | 57 // removed. See http://crbug.com/354380 |
| 58 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; | 58 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; |
| 59 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; | 59 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; |
| 60 scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar( |
| 61 scoped_ptr<ConfirmInfoBarDelegate> delegate) override; |
| 60 | 62 |
| 61 // content::WebContentsObserver: | 63 // content::WebContentsObserver: |
| 62 void RenderProcessGone(base::TerminationStatus status) override; | 64 void RenderProcessGone(base::TerminationStatus status) override; |
| 63 void DidStartNavigationToPendingEntry( | 65 void DidStartNavigationToPendingEntry( |
| 64 const GURL& url, | 66 const GURL& url, |
| 65 content::NavigationController::ReloadType reload_type) override; | 67 content::NavigationController::ReloadType reload_type) override; |
| 66 void NavigationEntryCommitted( | 68 void NavigationEntryCommitted( |
| 67 const content::LoadCommittedDetails& load_details) override; | 69 const content::LoadCommittedDetails& load_details) override; |
| 68 void WebContentsDestroyed() override; | 70 void WebContentsDestroyed() override; |
| 69 bool OnMessageReceived(const IPC::Message& message) override; | 71 bool OnMessageReceived(const IPC::Message& message) override; |
| 70 | 72 |
| 71 // Message handlers. | 73 // Message handlers. |
| 72 void OnDidBlockDisplayingInsecureContent(); | 74 void OnDidBlockDisplayingInsecureContent(); |
| 73 void OnDidBlockRunningInsecureContent(); | 75 void OnDidBlockRunningInsecureContent(); |
| 74 | 76 |
| 75 // See description in set_ignore_next_reload(). | 77 // See description in set_ignore_next_reload(). |
| 76 bool ignore_next_reload_; | 78 bool ignore_next_reload_; |
| 77 | 79 |
| 78 DISALLOW_COPY_AND_ASSIGN(InfoBarService); | 80 DISALLOW_COPY_AND_ASSIGN(InfoBarService); |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ | 83 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ |
| OLD | NEW |