Index: third_party/WebKit/Source/core/frame/UseCounter.h |
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.h b/third_party/WebKit/Source/core/frame/UseCounter.h |
index fb179a8399889bccd401aac0de5be7ee6df22858..3d0aa46637d9a79ada9cf7f40059fc3fa3355ae4 100644 |
--- a/third_party/WebKit/Source/core/frame/UseCounter.h |
+++ b/third_party/WebKit/Source/core/frame/UseCounter.h |
@@ -994,6 +994,14 @@ public: |
V8PromiseAccept = 1138, |
V8PromiseDefer = 1139, |
EventScoped = 1140, |
+ GeolocationInsecureOriginIframe = 1141, |
+ GeolocationSecureOriginIframe = 1142, |
+ RequestMIDIAccessIframe = 1143, |
+ GetUserMediaInsecureOriginIframe = 1144, |
+ GetUserMediaSecureOriginIframe = 1145, |
+ ElementRequestPointerLockIframe = 1146, |
+ NotificationAPIInsecureOriginIframe = 1147, |
+ NotificationAPISecureOriginIframe = 1148, |
// Add new features immediately above this line. Don't change assigned |
// numbers of any item, and don't reuse removed slots. |
@@ -1036,6 +1044,10 @@ public: |
static void countDeprecationIfNotPrivateScript(v8::Isolate*, ExecutionContext*, Feature); |
static String deprecationMessage(Feature); |
+ // Count only features if they're being used in an iframe which does not |
+ // have script access into the top level document. |
+ static void countCrossOriginIframe(const Document&, Feature); |
+ |
// Return whether the Feature was previously counted for this document. |
// NOTE: only for use in testing. |
static bool isCounted(Document&, Feature); |