| 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 NavigatorUserMedia_h | 5 #ifndef NavigatorUserMedia_h |
| 6 #define NavigatorUserMedia_h | 6 #define NavigatorUserMedia_h |
| 7 | 7 |
| 8 #include "core/frame/Navigator.h" | 8 #include "core/frame/Navigator.h" |
| 9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ExecutionContext; | |
| 15 class Navigator; | 14 class Navigator; |
| 16 class MediaDevices; | 15 class MediaDevices; |
| 17 | 16 |
| 18 class NavigatorUserMedia final : public GarbageCollected<NavigatorUserMedia>, | 17 class NavigatorUserMedia final : public GarbageCollected<NavigatorUserMedia>, |
| 19 public Supplement<Navigator> { | 18 public Supplement<Navigator> { |
| 20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorUserMedia) | 19 USING_GARBAGE_COLLECTED_MIXIN(NavigatorUserMedia) |
| 21 public: | 20 public: |
| 22 static MediaDevices* mediaDevices(Navigator&); | 21 static MediaDevices* mediaDevices(Navigator&); |
| 23 DECLARE_VIRTUAL_TRACE(); | 22 DECLARE_VIRTUAL_TRACE(); |
| 24 | 23 |
| 25 private: | 24 private: |
| 26 explicit NavigatorUserMedia(ExecutionContext*); | 25 explicit NavigatorUserMedia(Navigator&); |
| 27 MediaDevices* getMediaDevices(); | 26 MediaDevices* getMediaDevices(); |
| 28 static const char* supplementName(); | 27 static const char* supplementName(); |
| 29 static NavigatorUserMedia& from(Navigator&); | 28 static NavigatorUserMedia& from(Navigator&); |
| 30 | 29 |
| 31 Member<MediaDevices> m_mediaDevices; | 30 Member<MediaDevices> m_mediaDevices; |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 } // namespace blink | 33 } // namespace blink |
| 35 | 34 |
| 36 #endif | 35 #endif |
| OLD | NEW |