| 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/HostsUsingFeatures.h" | 5 #include "core/frame/HostsUsingFeatures.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/frame/LocalDOMWindow.h" | 9 #include "core/frame/LocalDOMWindow.h" |
| 10 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 if (get(Feature::EventPath)) | 185 if (get(Feature::EventPath)) |
| 186 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); | 186 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void HostsUsingFeatures::Value::recordETLDPlus1ToRappor(const KURL& url) | 189 void HostsUsingFeatures::Value::recordETLDPlus1ToRappor(const KURL& url) |
| 190 { | 190 { |
| 191 if (get(Feature::GetUserMediaInsecureHost)) | 191 if (get(Feature::GetUserMediaInsecureHost)) |
| 192 Platform::current()->recordRapporURL("PowerfulFeatureUse.ETLDPlus1.GetUs
erMedia.Insecure", WebURL(url)); | 192 Platform::current()->recordRapporURL("PowerfulFeatureUse.ETLDPlus1.GetUs
erMedia.Insecure", WebURL(url)); |
| 193 if (get(Feature::GetUserMediaSecureHost)) | 193 if (get(Feature::GetUserMediaSecureHost)) |
| 194 Platform::current()->recordRapporURL("PowerfulFeatureUse.ETLDPlus1.GetUs
erMedia.Secure", WebURL(url)); | 194 Platform::current()->recordRapporURL("PowerfulFeatureUse.ETLDPlus1.GetUs
erMedia.Secure", WebURL(url)); |
| 195 if (get(Feature::RTCPeerConnectionAudio)) |
| 196 Platform::current()->recordRapporURL("RTCPeerConnection.Audio", WebURL(u
rl)); |
| 197 if (get(Feature::RTCPeerConnectionVideo)) |
| 198 Platform::current()->recordRapporURL("RTCPeerConnection.Video", WebURL(u
rl)); |
| 199 if (get(Feature::RTCPeerConnectionDataChannel)) |
| 200 Platform::current()->recordRapporURL("RTCPeerConnection.DataChannel", We
bURL(url)); |
| 195 } | 201 } |
| 196 | 202 |
| 197 } // namespace blink | 203 } // namespace blink |
| OLD | NEW |