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

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

Issue 2681903002: RAPPOR metric for usage of RTCPeerConnection without connecting. (Closed)
Patch Set: Created 3 years, 10 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 "PowerfulFeatureUse.ETLDPlus1.GetUserMedia.Secure", WebURL(url)); 195 "PowerfulFeatureUse.ETLDPlus1.GetUserMedia.Secure", WebURL(url));
196 if (get(Feature::RTCPeerConnectionAudio)) 196 if (get(Feature::RTCPeerConnectionAudio))
197 Platform::current()->recordRapporURL("RTCPeerConnection.Audio", 197 Platform::current()->recordRapporURL("RTCPeerConnection.Audio",
198 WebURL(url)); 198 WebURL(url));
199 if (get(Feature::RTCPeerConnectionVideo)) 199 if (get(Feature::RTCPeerConnectionVideo))
200 Platform::current()->recordRapporURL("RTCPeerConnection.Video", 200 Platform::current()->recordRapporURL("RTCPeerConnection.Video",
201 WebURL(url)); 201 WebURL(url));
202 if (get(Feature::RTCPeerConnectionDataChannel)) 202 if (get(Feature::RTCPeerConnectionDataChannel))
203 Platform::current()->recordRapporURL("RTCPeerConnection.DataChannel", 203 Platform::current()->recordRapporURL("RTCPeerConnection.DataChannel",
204 WebURL(url)); 204 WebURL(url));
205 if (get(Feature::RTCPeerConnectionUsed) &&
206 !get(Feature::RTCPeerConnectionAudio) &&
207 !get(Feature::RTCPeerConnectionVideo) &&
208 !get(Feature::RTCPeerConnectionDataChannel)) {
209 Platform::current()->recordRapporURL("RTCPeerConnection.Unconnected",
210 WebURL(url));
211 }
205 } 212 }
206 213
207 } // namespace blink 214 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698