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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef HostsUsingFeatures_h 5 #ifndef HostsUsingFeatures_h
6 #define HostsUsingFeatures_h 6 #define HostsUsingFeatures_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/weborigin/KURL.h" 10 #include "platform/weborigin/KURL.h"
(...skipping 24 matching lines...) Expand all
35 FullscreenInsecureHost, 35 FullscreenInsecureHost,
36 GeolocationInsecureHost, 36 GeolocationInsecureHost,
37 GetUserMediaInsecureHost, 37 GetUserMediaInsecureHost,
38 GetUserMediaSecureHost, 38 GetUserMediaSecureHost,
39 ElementAttachShadow, 39 ElementAttachShadow,
40 ApplicationCacheManifestSelectInsecureHost, 40 ApplicationCacheManifestSelectInsecureHost,
41 ApplicationCacheAPIInsecureHost, 41 ApplicationCacheAPIInsecureHost,
42 RTCPeerConnectionAudio, 42 RTCPeerConnectionAudio,
43 RTCPeerConnectionVideo, 43 RTCPeerConnectionVideo,
44 RTCPeerConnectionDataChannel, 44 RTCPeerConnectionDataChannel,
45 RTCPeerConnectionUsed, // Used to compute the "unconnected PCs" feature
45 46
46 NumberOfFeatures // This must be the last item. 47 NumberOfFeatures // This must be the last item.
47 }; 48 };
48 49
49 static void countAnyWorld(Document&, Feature); 50 static void countAnyWorld(Document&, Feature);
50 static void countMainWorldOnly(const ScriptState*, Document&, Feature); 51 static void countMainWorldOnly(const ScriptState*, Document&, Feature);
51 static void countHostOrIsolatedWorldHumanReadableName(const ScriptState*, 52 static void countHostOrIsolatedWorldHumanReadableName(const ScriptState*,
52 EventTarget&, 53 EventTarget&,
53 Feature); 54 Feature);
54 55
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void recordNamesToRappor(); 88 void recordNamesToRappor();
88 void recordETLDPlus1ToRappor(); 89 void recordETLDPlus1ToRappor();
89 90
90 Vector<std::pair<KURL, HostsUsingFeatures::Value>, 1> m_urlAndValues; 91 Vector<std::pair<KURL, HostsUsingFeatures::Value>, 1> m_urlAndValues;
91 HashMap<String, HostsUsingFeatures::Value> m_valueByName; 92 HashMap<String, HostsUsingFeatures::Value> m_valueByName;
92 }; 93 };
93 94
94 } // namespace blink 95 } // namespace blink
95 96
96 #endif // HostsUsingFeatures_h 97 #endif // HostsUsingFeatures_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/HostsUsingFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698