OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "config.h" | 5 #include "config.h" |
6 #include "core/frame/OriginsUsingFeatures.h" | 6 #include "core/frame/OriginsUsingFeatures.h" |
7 | 7 |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 if (get(Feature::DeviceMotionInsecureOrigin)) | 148 if (get(Feature::DeviceMotionInsecureOrigin)) |
149 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceMotion.
Insecure", origin); | 149 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceMotion.
Insecure", origin); |
150 if (get(Feature::DeviceOrientationInsecureOrigin)) | 150 if (get(Feature::DeviceOrientationInsecureOrigin)) |
151 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceOrienta
tion.Insecure", origin); | 151 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceOrienta
tion.Insecure", origin); |
152 if (get(Feature::FullscreenInsecureOrigin)) | 152 if (get(Feature::FullscreenInsecureOrigin)) |
153 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Fullscreen.In
secure", origin); | 153 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Fullscreen.In
secure", origin); |
154 if (get(Feature::GeolocationInsecureOrigin)) | 154 if (get(Feature::GeolocationInsecureOrigin)) |
155 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.I
nsecure", origin); | 155 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.I
nsecure", origin); |
156 if (get(Feature::GetUserMediaInsecureOrigin)) | 156 if (get(Feature::GetUserMediaInsecureOrigin)) |
157 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Insecure", origin); | 157 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Insecure", origin); |
| 158 if (get(Feature::GetUserMediaSecureOrigin)) |
| 159 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Secure", origin); |
158 } | 160 } |
159 | 161 |
160 void OriginsUsingFeatures::Value::recordNameToRappor(const String& name) | 162 void OriginsUsingFeatures::Value::recordNameToRappor(const String& name) |
161 { | 163 { |
162 if (get(Feature::EventPath)) | 164 if (get(Feature::EventPath)) |
163 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); | 165 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); |
164 } | 166 } |
165 | 167 |
166 } // namespace blink | 168 } // namespace blink |
OLD | NEW |