Index: Source/modules/EventTargetModulesNames.h |
diff --git a/Source/modules/donottrack/NavigatorDoNotTrack.cpp b/Source/modules/EventTargetModulesNames.h |
similarity index 53% |
copy from Source/modules/donottrack/NavigatorDoNotTrack.cpp |
copy to Source/modules/EventTargetModulesNames.h |
index 03fcebf5ac9c407be87098c349949dbbd0e53827..30794cda291b1949a038183d5ab973476a73c460 100644 |
--- a/Source/modules/donottrack/NavigatorDoNotTrack.cpp |
+++ b/Source/modules/EventTargetModulesNames.h |
@@ -28,49 +28,48 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#include "config.h" |
-#include "modules/donottrack/NavigatorDoNotTrack.h" |
+#ifndef EventTargetModulesNames_h |
+#define EventTargetModulesNames_h |
-#include "core/frame/LocalFrame.h" |
-#include "core/frame/Navigator.h" |
-#include "core/loader/FrameLoaderClient.h" |
+#include "EventTargetNames.h" |
namespace WebCore { |
+namespace EventTargetNames { |
-NavigatorDoNotTrack::NavigatorDoNotTrack(LocalFrame* frame) |
- : DOMWindowProperty(frame) |
-{ |
-} |
+#ifndef EVENT_TARGET_NAMES_HIDE_GLOBALS |
-NavigatorDoNotTrack::~NavigatorDoNotTrack() |
-{ |
-} |
+extern const WTF::AtomicString BatteryManager; |
+extern const WTF::AtomicString MediaKeySession; |
+extern const WTF::AtomicString FileWriter; |
+extern const WTF::AtomicString IDBDatabase; |
+extern const WTF::AtomicString IDBOpenDBRequest; |
+extern const WTF::AtomicString IDBRequest; |
+extern const WTF::AtomicString IDBTransaction; |
+extern const WTF::AtomicString MediaSource; |
+extern const WTF::AtomicString SourceBuffer; |
+extern const WTF::AtomicString SourceBufferList; |
+extern const WTF::AtomicString MediaStream; |
+extern const WTF::AtomicString MediaStreamTrack; |
+extern const WTF::AtomicString RTCDTMFSender; |
+extern const WTF::AtomicString RTCDataChannel; |
+extern const WTF::AtomicString RTCPeerConnection; |
+extern const WTF::AtomicString Notification; |
+extern const WTF::AtomicString ServiceWorker; |
+extern const WTF::AtomicString ServiceWorkerGlobalScope; |
+extern const WTF::AtomicString SpeechRecognition; |
+extern const WTF::AtomicString SpeechSynthesisUtterance; |
+extern const WTF::AtomicString MIDIAccess; |
+extern const WTF::AtomicString MIDIInput; |
+extern const WTF::AtomicString MIDIPort; |
+extern const WTF::AtomicString WebSocket; |
+extern const WTF::AtomicString AudioContext; |
+extern const WTF::AtomicString AudioNode; |
-const char* NavigatorDoNotTrack::supplementName() |
-{ |
- return "NavigatorDoNotTrack"; |
-} |
+#endif // EVENT_TARGET_NAMES_HIDE_GLOBALS |
-NavigatorDoNotTrack& NavigatorDoNotTrack::from(Navigator& navigator) |
-{ |
- NavigatorDoNotTrack* supplement = static_cast<NavigatorDoNotTrack*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName())); |
- if (!supplement) { |
- supplement = new NavigatorDoNotTrack(navigator.frame()); |
- provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement)); |
- } |
- return *supplement; |
-} |
+void initModules(); |
-String NavigatorDoNotTrack::doNotTrack(Navigator& navigator) |
-{ |
- return NavigatorDoNotTrack::from(navigator).doNotTrack(); |
-} |
+} // EventTargetNames |
+} // WebCore |
-String NavigatorDoNotTrack::doNotTrack() |
-{ |
- if (!frame() || !frame()->loader().client()) |
- return String(); |
- return frame()->loader().client()->doNotTrackValue(); |
-} |
- |
-} // namespace WebCore |
+#endif |