OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/media/protected_media_identifier_infobar_delegate_andro
id.h" | 5 #include "chrome/browser/media/protected_media_identifier_infobar_delegate_andro
id.h" |
6 | 6 |
7 #include "chrome/browser/android/android_theme_resources.h" | 7 #include "chrome/browser/android/android_theme_resources.h" |
8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
9 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
10 #include "components/strings/grit/components_strings.h" | 10 #include "components/strings/grit/components_strings.h" |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 | 12 |
13 ProtectedMediaIdentifierInfoBarDelegateAndroid:: | 13 ProtectedMediaIdentifierInfoBarDelegateAndroid:: |
14 ProtectedMediaIdentifierInfoBarDelegateAndroid( | 14 ProtectedMediaIdentifierInfoBarDelegateAndroid( |
15 const GURL& requesting_frame, | 15 const GURL& requesting_frame, |
16 bool user_gesture, | 16 bool user_gesture, |
17 Profile* profile, | 17 Profile* profile, |
18 const PermissionSetCallback& callback) | 18 const PermissionSetCallback& callback) |
19 : PermissionInfoBarDelegate( | 19 : PermissionInfoBarDelegate( |
20 requesting_frame, | 20 requesting_frame, |
21 content::PermissionType::PROTECTED_MEDIA_IDENTIFIER, | |
22 CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER, | 21 CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER, |
23 user_gesture, | 22 user_gesture, |
24 profile, | 23 profile, |
25 callback) {} | 24 callback) {} |
26 | 25 |
27 ProtectedMediaIdentifierInfoBarDelegateAndroid:: | 26 ProtectedMediaIdentifierInfoBarDelegateAndroid:: |
28 ~ProtectedMediaIdentifierInfoBarDelegateAndroid() {} | 27 ~ProtectedMediaIdentifierInfoBarDelegateAndroid() {} |
29 | 28 |
30 infobars::InfoBarDelegate::InfoBarIdentifier | 29 infobars::InfoBarDelegate::InfoBarIdentifier |
31 ProtectedMediaIdentifierInfoBarDelegateAndroid::GetIdentifier() const { | 30 ProtectedMediaIdentifierInfoBarDelegateAndroid::GetIdentifier() const { |
(...skipping 10 matching lines...) Expand all Loading... |
42 } | 41 } |
43 | 42 |
44 GURL ProtectedMediaIdentifierInfoBarDelegateAndroid::GetLinkURL() const { | 43 GURL ProtectedMediaIdentifierInfoBarDelegateAndroid::GetLinkURL() const { |
45 return GURL(chrome::kEnhancedPlaybackNotificationLearnMoreURL); | 44 return GURL(chrome::kEnhancedPlaybackNotificationLearnMoreURL); |
46 } | 45 } |
47 | 46 |
48 int ProtectedMediaIdentifierInfoBarDelegateAndroid::GetMessageResourceId() | 47 int ProtectedMediaIdentifierInfoBarDelegateAndroid::GetMessageResourceId() |
49 const { | 48 const { |
50 return IDS_PROTECTED_MEDIA_IDENTIFIER_INFOBAR_QUESTION; | 49 return IDS_PROTECTED_MEDIA_IDENTIFIER_INFOBAR_QUESTION; |
51 } | 50 } |
OLD | NEW |