| 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_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // was created. | 28 // was created. |
| 29 static bool Create(content::WebContents* web_contents, | 29 static bool Create(content::WebContents* web_contents, |
| 30 std::unique_ptr<MediaStreamDevicesController> controller); | 30 std::unique_ptr<MediaStreamDevicesController> controller); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 friend class WebRtcTestBase; | 33 friend class WebRtcTestBase; |
| 34 | 34 |
| 35 explicit MediaStreamInfoBarDelegateAndroid( | 35 explicit MediaStreamInfoBarDelegateAndroid( |
| 36 std::unique_ptr<MediaStreamDevicesController> controller); | 36 std::unique_ptr<MediaStreamDevicesController> controller); |
| 37 | 37 |
| 38 void RecordPermissionAcceptedUma(int position, bool persist); | |
| 39 void RecordPermissionDeniedUma(int position, bool persist); | |
| 40 | |
| 41 // ConfirmInfoBarDelegate: | 38 // ConfirmInfoBarDelegate: |
| 42 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 39 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 43 void InfoBarDismissed() override; | 40 void InfoBarDismissed() override; |
| 44 MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid() | 41 MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid() |
| 45 override; | 42 override; |
| 46 bool Accept() override; | 43 bool Accept() override; |
| 47 bool Cancel() override; | 44 bool Cancel() override; |
| 48 | 45 |
| 49 std::unique_ptr<MediaStreamDevicesController> controller_; | 46 std::unique_ptr<MediaStreamDevicesController> controller_; |
| 50 | 47 |
| 51 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid); | 48 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid); |
| 52 }; | 49 }; |
| 53 | 50 |
| 54 #endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ | 51 #endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ |
| OLD | NEW |