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 "core/frame/OriginsUsingFeatures.h" | 5 #include "core/frame/OriginsUsingFeatures.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/page/Page.h" | 9 #include "core/page/Page.h" |
10 #include "public/platform/Platform.h" | 10 #include "public/platform/Platform.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 if (get(Feature::DeviceOrientationInsecureOrigin)) | 151 if (get(Feature::DeviceOrientationInsecureOrigin)) |
152 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceOrienta
tion.Insecure", origin); | 152 Platform::current()->recordRappor("PowerfulFeatureUse.Host.DeviceOrienta
tion.Insecure", origin); |
153 if (get(Feature::FullscreenInsecureOrigin)) | 153 if (get(Feature::FullscreenInsecureOrigin)) |
154 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Fullscreen.In
secure", origin); | 154 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Fullscreen.In
secure", origin); |
155 if (get(Feature::GeolocationInsecureOrigin)) | 155 if (get(Feature::GeolocationInsecureOrigin)) |
156 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.I
nsecure", origin); | 156 Platform::current()->recordRappor("PowerfulFeatureUse.Host.Geolocation.I
nsecure", origin); |
157 if (get(Feature::GetUserMediaInsecureOrigin)) | 157 if (get(Feature::GetUserMediaInsecureOrigin)) |
158 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Insecure", origin); | 158 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Insecure", origin); |
159 if (get(Feature::GetUserMediaSecureOrigin)) | 159 if (get(Feature::GetUserMediaSecureOrigin)) |
160 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Secure", origin); | 160 Platform::current()->recordRappor("PowerfulFeatureUse.Host.GetUserMedia.
Secure", origin); |
| 161 if (get(Feature::ApplicationCacheManifestSelectInsecureOrigin)) |
| 162 Platform::current()->recordRappor("PowerfulFeatureUse.Host.ApplicationCa
cheManifestSelect.Insecure", origin); |
| 163 if (get(Feature::ApplicationCacheAPIInsecureOrigin)) |
| 164 Platform::current()->recordRappor("PowerfulFeatureUse.Host.ApplicationCa
cheAPI.Insecure", origin); |
161 } | 165 } |
162 | 166 |
163 void OriginsUsingFeatures::Value::recordNameToRappor(const String& name) | 167 void OriginsUsingFeatures::Value::recordNameToRappor(const String& name) |
164 { | 168 { |
165 if (get(Feature::EventPath)) | 169 if (get(Feature::EventPath)) |
166 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); | 170 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); |
167 } | 171 } |
168 | 172 |
169 } // namespace blink | 173 } // namespace blink |
OLD | NEW |