| 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" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/infobars/infobar_delegate.h" | 12 #include "chrome/browser/infobars/infobar_delegate.h" |
| 13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/web_contents_delegate.h" |
| 14 #include "content/public/common/media_stream_request.h" | 14 #include "content/public/common/media_stream_request.h" |
| 15 | 15 |
| 16 class MessageLoop; | 16 class MessageLoop; |
| 17 class TabContents; | 17 class TabContents; |
| 18 | 18 |
| 19 // This class configures an infobar shown when a page requests access to a | 19 // This class configures an infobar shown when a page requests access to a |
| 20 // user's microphone and/or video camera. The user is shown a message asking | 20 // user's microphone and/or video camera. The user is shown a message asking |
| 21 // which audio and/or video devices he wishes to use with the current page, and | 21 // which audio and/or video devices he wishes to use with the current page, and |
| 22 // buttons to give access to the selected devices to the page, or to deny access | 22 // buttons to give access to the selected devices to the page, or to deny access |
| 23 // to them. | 23 // to them. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |