FeaturePolicy.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\Security\FeaturePolicy;
  8. class FeaturePolicy extends \OCP\AppFramework\Http\FeaturePolicy {
  9. public function getAutoplayDomains(): array {
  10. return $this->autoplayDomains;
  11. }
  12. public function setAutoplayDomains(array $autoplayDomains): void {
  13. $this->autoplayDomains = $autoplayDomains;
  14. }
  15. public function getCameraDomains(): array {
  16. return $this->cameraDomains;
  17. }
  18. public function setCameraDomains(array $cameraDomains): void {
  19. $this->cameraDomains = $cameraDomains;
  20. }
  21. public function getFullscreenDomains(): array {
  22. return $this->fullscreenDomains;
  23. }
  24. public function setFullscreenDomains(array $fullscreenDomains): void {
  25. $this->fullscreenDomains = $fullscreenDomains;
  26. }
  27. public function getGeolocationDomains(): array {
  28. return $this->geolocationDomains;
  29. }
  30. public function setGeolocationDomains(array $geolocationDomains): void {
  31. $this->geolocationDomains = $geolocationDomains;
  32. }
  33. public function getMicrophoneDomains(): array {
  34. return $this->microphoneDomains;
  35. }
  36. public function setMicrophoneDomains(array $microphoneDomains): void {
  37. $this->microphoneDomains = $microphoneDomains;
  38. }
  39. public function getPaymentDomains(): array {
  40. return $this->paymentDomains;
  41. }
  42. public function setPaymentDomains(array $paymentDomains): void {
  43. $this->paymentDomains = $paymentDomains;
  44. }
  45. }