Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Side by Side Diff: third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp

Issue 2095643002: Add RTCPeerConnection RAPPOR metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: record metrics only for connected PCs Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698