| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef MediaStreamSource_h | 32 #ifndef MediaStreamSource_h |
| 33 #define MediaStreamSource_h | 33 #define MediaStreamSource_h |
| 34 | 34 |
| 35 #include <memory> |
| 35 #include "platform/PlatformExport.h" | 36 #include "platform/PlatformExport.h" |
| 36 #include "platform/audio/AudioDestinationConsumer.h" | 37 #include "platform/audio/AudioDestinationConsumer.h" |
| 37 #include "public/platform/WebMediaConstraints.h" | 38 #include "public/platform/WebMediaConstraints.h" |
| 38 #include "public/platform/WebMediaStreamTrack.h" | 39 #include "public/platform/WebMediaStreamTrack.h" |
| 39 #include "wtf/Allocator.h" | 40 #include "wtf/Allocator.h" |
| 40 #include "wtf/ThreadingPrimitives.h" | 41 #include "wtf/ThreadingPrimitives.h" |
| 41 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 42 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
| 43 #include <memory> | |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class PLATFORM_EXPORT MediaStreamSource final | 47 class PLATFORM_EXPORT MediaStreamSource final |
| 48 : public GarbageCollectedFinalized<MediaStreamSource> { | 48 : public GarbageCollectedFinalized<MediaStreamSource> { |
| 49 public: | 49 public: |
| 50 class PLATFORM_EXPORT Observer : public GarbageCollectedMixin { | 50 class PLATFORM_EXPORT Observer : public GarbageCollectedMixin { |
| 51 public: | 51 public: |
| 52 virtual ~Observer() {} | 52 virtual ~Observer() {} |
| 53 virtual void sourceChangedState() = 0; | 53 virtual void sourceChangedState() = 0; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 HeapHashSet<Member<AudioDestinationConsumer>> m_audioConsumers; | 131 HeapHashSet<Member<AudioDestinationConsumer>> m_audioConsumers; |
| 132 std::unique_ptr<ExtraData> m_extraData; | 132 std::unique_ptr<ExtraData> m_extraData; |
| 133 WebMediaConstraints m_constraints; | 133 WebMediaConstraints m_constraints; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 typedef HeapVector<Member<MediaStreamSource>> MediaStreamSourceVector; | 136 typedef HeapVector<Member<MediaStreamSource>> MediaStreamSourceVector; |
| 137 | 137 |
| 138 } // namespace blink | 138 } // namespace blink |
| 139 | 139 |
| 140 #endif // MediaStreamSource_h | 140 #endif // MediaStreamSource_h |
| OLD | NEW |