Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/media/webrtc/media_stream_infobar_delegate_android.h

Issue 2254763002: Enable the optional permission prompt persistence toggle on grouped infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-infobardelegate-clean
Patch Set: DCHECK -> CHECK Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_ 54 #endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698