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_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_MEDIA_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 psition, bool persist); | |
xhwang
2016/08/23 20:27:43
position
dominickn
2016/08/24 01:00:35
Done.
| |
39 void RecordPermissionDeniedUma(int psition, bool persist); | |
40 | |
38 // ConfirmInfoBarDelegate: | 41 // ConfirmInfoBarDelegate: |
39 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 42 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
40 void InfoBarDismissed() override; | 43 void InfoBarDismissed() override; |
41 MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid() | 44 MediaStreamInfoBarDelegateAndroid* AsMediaStreamInfoBarDelegateAndroid() |
42 override; | 45 override; |
43 bool Accept() override; | 46 bool Accept() override; |
44 bool Cancel() override; | 47 bool Cancel() override; |
45 | 48 |
46 std::unique_ptr<MediaStreamDevicesController> controller_; | 49 std::unique_ptr<MediaStreamDevicesController> controller_; |
47 | 50 |
48 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid); | 51 DISALLOW_COPY_AND_ASSIGN(MediaStreamInfoBarDelegateAndroid); |
49 }; | 52 }; |
50 | 53 |
51 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ | 54 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ |
OLD | NEW |