| 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/ui/media_stream_infobar_delegate.h" | 5 #include "chrome/browser/ui/media_stream_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 8 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 9 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 11 | 12 |
| 12 MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate( | 13 MediaStreamInfoBarDelegate::MediaStreamInfoBarDelegate( |
| 13 InfoBarTabHelper* tab_helper, | 14 InfoBarTabHelper* tab_helper, |
| 14 MediaStreamDevicesController* controller) | 15 MediaStreamDevicesController* controller) |
| 15 : InfoBarDelegate(tab_helper), | 16 : InfoBarDelegate(tab_helper), |
| 16 controller_(controller) { | 17 controller_(controller) { |
| 17 DCHECK(controller_.get()); | 18 DCHECK(controller_.get()); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 } | 67 } |
| 67 | 68 |
| 68 InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType() const { | 69 InfoBarDelegate::Type MediaStreamInfoBarDelegate::GetInfoBarType() const { |
| 69 return PAGE_ACTION_TYPE; | 70 return PAGE_ACTION_TYPE; |
| 70 } | 71 } |
| 71 | 72 |
| 72 MediaStreamInfoBarDelegate* | 73 MediaStreamInfoBarDelegate* |
| 73 MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() { | 74 MediaStreamInfoBarDelegate::AsMediaStreamInfoBarDelegate() { |
| 74 return this; | 75 return this; |
| 75 } | 76 } |
| OLD | NEW |