| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/infobars/infobar_tab_helper.h" | 5 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 6 | 6 |
| 7 #include "chrome/browser/infobars/infobar.h" | 7 #include "chrome/browser/infobars/infobar.h" |
| 8 #include "chrome/browser/infobars/infobar_delegate.h" | 8 #include "chrome/browser/infobars/infobar_delegate.h" |
| 9 #include "chrome/browser/tab_contents/insecure_content_infobar_delegate.h" | 9 #include "chrome/browser/tab_contents/insecure_content_infobar_delegate.h" |
| 10 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
| 11 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
| 12 #include "content/browser/tab_contents/navigation_controller.h" | 12 #include "content/public/browser/navigation_controller.h" |
| 13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 | 15 |
| 16 using content::WebContents; | 16 using content::WebContents; |
| 17 | 17 |
| 18 InfoBarTabHelper::InfoBarTabHelper(WebContents* web_contents) | 18 InfoBarTabHelper::InfoBarTabHelper(WebContents* web_contents) |
| 19 : content::WebContentsObserver(web_contents), | 19 : content::WebContentsObserver(web_contents), |
| 20 infobars_enabled_(true) { | 20 infobars_enabled_(true) { |
| 21 DCHECK(web_contents); | 21 DCHECK(web_contents); |
| 22 } | 22 } |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 if (delegate->ShouldExpire(committed_details)) | 196 if (delegate->ShouldExpire(committed_details)) |
| 197 RemoveInfoBar(delegate); | 197 RemoveInfoBar(delegate); |
| 198 } | 198 } |
| 199 | 199 |
| 200 break; | 200 break; |
| 201 } | 201 } |
| 202 default: | 202 default: |
| 203 NOTREACHED(); | 203 NOTREACHED(); |
| 204 } | 204 } |
| 205 } | 205 } |
| OLD | NEW |