| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 WebFeaturePolicyFeature_h | 5 #ifndef WebFeaturePolicyFeature_h |
| 6 #define WebFeaturePolicyFeature_h | 6 #define WebFeaturePolicyFeature_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 // These values map to the features which can be controlled by Feature Policy. | 10 // These values map to the features which can be controlled by Feature Policy. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Controls access to audio output devices. | 32 // Controls access to audio output devices. |
| 33 kSpeaker, | 33 kSpeaker, |
| 34 // Controls access to navigator.vibrate method. | 34 // Controls access to navigator.vibrate method. |
| 35 kVibrate, | 35 kVibrate, |
| 36 // Controls access to document.cookie attribute. | 36 // Controls access to document.cookie attribute. |
| 37 kDocumentCookie, | 37 kDocumentCookie, |
| 38 // Contols access to document.domain attribute. | 38 // Contols access to document.domain attribute. |
| 39 kDocumentDomain, | 39 kDocumentDomain, |
| 40 // Controls access to document.write and document.writeln methods. | 40 // Controls access to document.write and document.writeln methods. |
| 41 kDocumentWrite, | 41 kDocumentWrite, |
| 42 // Controls access to Notification interface. | |
| 43 kNotifications, | |
| 44 // Controls access to PushManager interface. | |
| 45 kPush, | |
| 46 // Controls whether synchronous script elements will run. | 42 // Controls whether synchronous script elements will run. |
| 47 kSyncScript, | 43 kSyncScript, |
| 48 // Controls use of synchronous XMLHTTPRequest API. | 44 // Controls use of synchronous XMLHTTPRequest API. |
| 49 kSyncXHR, | 45 kSyncXHR, |
| 50 // Controls access to RTCPeerConnection interface. | |
| 51 kWebRTC, | |
| 52 // Controls access to the WebUSB API. | 46 // Controls access to the WebUSB API. |
| 53 kUsb, | 47 kUsb, |
| 54 LAST_FEATURE = kUsb | 48 LAST_FEATURE = kUsb |
| 55 }; | 49 }; |
| 56 | 50 |
| 57 } // namespace blink | 51 } // namespace blink |
| 58 | 52 |
| 59 #endif // WebFeaturePolicyFeature_h | 53 #endif // WebFeaturePolicyFeature_h |
| OLD | NEW |