| 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_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 content::MediaStreamDevices* devices); | 58 content::MediaStreamDevices* devices); |
| 59 | 59 |
| 60 // InfoBarDelegate: | 60 // InfoBarDelegate: |
| 61 virtual InfoBar* CreateInfoBar(InfoBarTabHelper* owner) OVERRIDE; | 61 virtual InfoBar* CreateInfoBar(InfoBarTabHelper* owner) OVERRIDE; |
| 62 virtual void InfoBarDismissed() OVERRIDE; | 62 virtual void InfoBarDismissed() OVERRIDE; |
| 63 virtual gfx::Image* GetIcon() const OVERRIDE; | 63 virtual gfx::Image* GetIcon() const OVERRIDE; |
| 64 virtual Type GetInfoBarType() const OVERRIDE; | 64 virtual Type GetInfoBarType() const OVERRIDE; |
| 65 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate() OVERRIDE; | 65 virtual MediaStreamInfoBarDelegate* AsMediaStreamInfoBarDelegate() OVERRIDE; |
| 66 | 66 |
| 67 // The original request for access to devices. | 67 // The original request for access to devices. |
| 68 const content::MediaStreamRequest* request_; | 68 const content::MediaStreamRequest request_; |
| 69 | 69 |
| 70 // The callback that needs to be Run to notify WebRTC of whether access to | 70 // The callback that needs to be Run to notify WebRTC of whether access to |
| 71 // audio/video devices was granted or not. | 71 // audio/video devices was granted or not. |
| 72 content::MediaResponseCallback callback_; | 72 content::MediaResponseCallback callback_; |
| 73 | 73 |
| 74 // Whether the request is for audio and/or video devices. | 74 // Whether the request is for audio and/or video devices. |
| 75 bool has_audio_; | 75 bool has_audio_; |
| 76 bool has_video_; | 76 bool has_video_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegate); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif // CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ | 81 #endif // CHROME_BROWSER_UI_MEDIA_STREAM_INFOBAR_DELEGATE_H_ |
| OLD | NEW |