Chromium Code Reviews| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override; | 55 void OpenURL(const GURL& url, WindowOpenDisposition disposition) override; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 friend class content::WebContentsUserData<InfoBarService>; | 58 friend class content::WebContentsUserData<InfoBarService>; |
| 59 | 59 |
| 60 explicit InfoBarService(content::WebContents* web_contents); | 60 explicit InfoBarService(content::WebContents* web_contents); |
| 61 ~InfoBarService() override; | 61 ~InfoBarService() override; |
| 62 | 62 |
| 63 // InfoBarManager: | 63 // InfoBarManager: |
| 64 int GetActiveEntryID() override; | 64 int GetActiveEntryID() override; |
| 65 scoped_ptr<infobars::InfoBar> CreateAutofillCCInfoBar( | |
|
Justin Donnelly
2016/01/07 18:15:40
As we discussed offline, maybe this should have a
please use gerrit instead
2016/01/08 00:07:05
Acknowledged.
| |
| 66 scoped_ptr<autofill::AutofillCCInfoBarDelegate> delegate) override; | |
| 65 // TODO(droger): Remove these functions once infobar notifications are | 67 // TODO(droger): Remove these functions once infobar notifications are |
| 66 // removed. See http://crbug.com/354380 | 68 // removed. See http://crbug.com/354380 |
| 67 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; | 69 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; |
| 68 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; | 70 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; |
| 69 | 71 |
| 70 // content::WebContentsObserver: | 72 // content::WebContentsObserver: |
| 71 void RenderProcessGone(base::TerminationStatus status) override; | 73 void RenderProcessGone(base::TerminationStatus status) override; |
| 72 void DidStartNavigationToPendingEntry( | 74 void DidStartNavigationToPendingEntry( |
| 73 const GURL& url, | 75 const GURL& url, |
| 74 content::NavigationController::ReloadType reload_type) override; | 76 content::NavigationController::ReloadType reload_type) override; |
| 75 void NavigationEntryCommitted( | 77 void NavigationEntryCommitted( |
| 76 const content::LoadCommittedDetails& load_details) override; | 78 const content::LoadCommittedDetails& load_details) override; |
| 77 void WebContentsDestroyed() override; | 79 void WebContentsDestroyed() override; |
| 78 bool OnMessageReceived(const IPC::Message& message) override; | 80 bool OnMessageReceived(const IPC::Message& message) override; |
| 79 | 81 |
| 80 // Message handlers. | 82 // Message handlers. |
| 81 void OnDidBlockDisplayingInsecureContent(); | 83 void OnDidBlockDisplayingInsecureContent(); |
| 82 | 84 |
| 83 // See description in set_ignore_next_reload(). | 85 // See description in set_ignore_next_reload(). |
| 84 bool ignore_next_reload_; | 86 bool ignore_next_reload_; |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(InfoBarService); | 88 DISALLOW_COPY_AND_ASSIGN(InfoBarService); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ | 91 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ |
| OLD | NEW |