| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/infobars/core/infobar_manager.h" | 12 #include "components/infobars/core/infobar_manager.h" |
| 13 #include "content/public/browser/reload_type.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
| 14 #include "content/public/browser/web_contents_user_data.h" | 15 #include "content/public/browser/web_contents_user_data.h" |
| 15 #include "ui/base/window_open_disposition.h" | 16 #include "ui/base/window_open_disposition.h" |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 struct LoadCommittedDetails; | 19 struct LoadCommittedDetails; |
| 19 class WebContents; | 20 class WebContents; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace infobars { | 23 namespace infobars { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int GetActiveEntryID() override; | 65 int GetActiveEntryID() override; |
| 65 // TODO(droger): Remove these functions once infobar notifications are | 66 // TODO(droger): Remove these functions once infobar notifications are |
| 66 // removed. See http://crbug.com/354380 | 67 // removed. See http://crbug.com/354380 |
| 67 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; | 68 void NotifyInfoBarAdded(infobars::InfoBar* infobar) override; |
| 68 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; | 69 void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override; |
| 69 | 70 |
| 70 // content::WebContentsObserver: | 71 // content::WebContentsObserver: |
| 71 void RenderProcessGone(base::TerminationStatus status) override; | 72 void RenderProcessGone(base::TerminationStatus status) override; |
| 72 void DidStartNavigationToPendingEntry( | 73 void DidStartNavigationToPendingEntry( |
| 73 const GURL& url, | 74 const GURL& url, |
| 74 content::NavigationController::ReloadType reload_type) override; | 75 content::ReloadType reload_type) override; |
| 75 void NavigationEntryCommitted( | 76 void NavigationEntryCommitted( |
| 76 const content::LoadCommittedDetails& load_details) override; | 77 const content::LoadCommittedDetails& load_details) override; |
| 77 void WebContentsDestroyed() override; | 78 void WebContentsDestroyed() override; |
| 78 | 79 |
| 79 // See description in set_ignore_next_reload(). | 80 // See description in set_ignore_next_reload(). |
| 80 bool ignore_next_reload_; | 81 bool ignore_next_reload_; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(InfoBarService); | 83 DISALLOW_COPY_AND_ASSIGN(InfoBarService); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ | 86 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_SERVICE_H_ |
| OLD | NEW |