| 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_permission_context.h" | 5 #include "chrome/browser/media/protected_media_identifier_permission_context.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/user_metrics.h" | 8 #include "base/metrics/user_metrics.h" |
| 9 #include "base/strings/string_split.h" | 9 #include "base/strings/string_split.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #error This file currently only supports Chrome OS and Android. | 34 #error This file currently only supports Chrome OS and Android. |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
| 38 using chromeos::attestation::PlatformVerificationDialog; | 38 using chromeos::attestation::PlatformVerificationDialog; |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 ProtectedMediaIdentifierPermissionContext:: | 41 ProtectedMediaIdentifierPermissionContext:: |
| 42 ProtectedMediaIdentifierPermissionContext(Profile* profile) | 42 ProtectedMediaIdentifierPermissionContext(Profile* profile) |
| 43 : PermissionContextBase(profile, | 43 : PermissionContextBase(profile, |
| 44 CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER) | 44 CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER, |
| 45 blink::WebFeaturePolicyFeature::kEme) |
| 45 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
| 46 , | 47 , |
| 47 weak_factory_(this) | 48 weak_factory_(this) |
| 48 #endif | 49 #endif |
| 49 { | 50 { |
| 50 } | 51 } |
| 51 | 52 |
| 52 ProtectedMediaIdentifierPermissionContext:: | 53 ProtectedMediaIdentifierPermissionContext:: |
| 53 ~ProtectedMediaIdentifierPermissionContext() { | 54 ~ProtectedMediaIdentifierPermissionContext() { |
| 54 } | 55 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 content_setting = CONTENT_SETTING_BLOCK; | 278 content_setting = CONTENT_SETTING_BLOCK; |
| 278 persist = true; | 279 persist = true; |
| 279 break; | 280 break; |
| 280 } | 281 } |
| 281 | 282 |
| 282 NotifyPermissionSet( | 283 NotifyPermissionSet( |
| 283 id, requesting_origin, embedding_origin, callback, | 284 id, requesting_origin, embedding_origin, callback, |
| 284 persist, content_setting); | 285 persist, content_setting); |
| 285 } | 286 } |
| 286 #endif | 287 #endif |
| OLD | NEW |