| 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 #include "chrome/browser/infobars/infobar_delegate.h" | 5 #include "chrome/browser/infobars/infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/infobars/infobar_tab_helper.h" | 9 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 InsecureContentInfoBarDelegate* | 62 InsecureContentInfoBarDelegate* |
| 63 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { | 63 InfoBarDelegate::AsInsecureContentInfoBarDelegate() { |
| 64 return NULL; | 64 return NULL; |
| 65 } | 65 } |
| 66 | 66 |
| 67 LinkInfoBarDelegate* InfoBarDelegate::AsLinkInfoBarDelegate() { | 67 LinkInfoBarDelegate* InfoBarDelegate::AsLinkInfoBarDelegate() { |
| 68 return NULL; | 68 return NULL; |
| 69 } | 69 } |
| 70 | 70 |
| 71 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfobarDelegate() { | 71 MediaStreamInfoBarDelegate* InfoBarDelegate::AsMediaStreamInfoBarDelegate() { |
| 72 return NULL; | 72 return NULL; |
| 73 } | 73 } |
| 74 | 74 |
| 75 RegisterProtocolHandlerInfoBarDelegate* | 75 RegisterProtocolHandlerInfoBarDelegate* |
| 76 InfoBarDelegate::AsRegisterProtocolHandlerInfoBarDelegate() { | 76 InfoBarDelegate::AsRegisterProtocolHandlerInfoBarDelegate() { |
| 77 return NULL; | 77 return NULL; |
| 78 } | 78 } |
| 79 | 79 |
| 80 ThemeInstalledInfoBarDelegate* | 80 ThemeInstalledInfoBarDelegate* |
| 81 InfoBarDelegate::AsThemePreviewInfobarDelegate() { | 81 InfoBarDelegate::AsThemePreviewInfobarDelegate() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 105 return (contents_unique_id_ != details.entry->GetUniqueID()) || | 105 return (contents_unique_id_ != details.entry->GetUniqueID()) || |
| 106 (content::PageTransitionStripQualifier( | 106 (content::PageTransitionStripQualifier( |
| 107 details.entry->GetTransitionType()) == | 107 details.entry->GetTransitionType()) == |
| 108 content::PAGE_TRANSITION_RELOAD); | 108 content::PAGE_TRANSITION_RELOAD); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void InfoBarDelegate::RemoveSelf() { | 111 void InfoBarDelegate::RemoveSelf() { |
| 112 if (owner_) | 112 if (owner_) |
| 113 owner_->RemoveInfoBar(this); // Clears |owner_|. | 113 owner_->RemoveInfoBar(this); // Clears |owner_|. |
| 114 } | 114 } |
| OLD | NEW |