| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |