| 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 "platform/PlatformExport.h" |
| 35 #include "platform/audio/AudioDestinationConsumer.h" | 36 #include "platform/audio/AudioDestinationConsumer.h" |
| 36 #include "platform/mediastream/MediaConstraints.h" | 37 #include "platform/mediastream/MediaConstraints.h" |
| 37 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.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 | 44 |
| 44 namespace WebCore { | 45 namespace WebCore { |
| 45 | 46 |
| 46 class MediaStreamSource : public RefCounted<MediaStreamSource> { | 47 class PLATFORM_EXPORT MediaStreamSource : public RefCounted<MediaStreamSource> { |
| 47 public: | 48 public: |
| 48 class Observer { | 49 class Observer { |
| 49 public: | 50 public: |
| 50 virtual ~Observer() { } | 51 virtual ~Observer() { } |
| 51 virtual void sourceChangedState() = 0; | 52 virtual void sourceChangedState() = 0; |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 class ExtraData { | 55 class ExtraData { |
| 55 public: | 56 public: |
| 56 virtual ~ExtraData() { } | 57 virtual ~ExtraData() { } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 Vector<RefPtr<AudioDestinationConsumer> > m_audioConsumers; | 111 Vector<RefPtr<AudioDestinationConsumer> > m_audioConsumers; |
| 111 OwnPtr<ExtraData> m_extraData; | 112 OwnPtr<ExtraData> m_extraData; |
| 112 RefPtr<MediaConstraints> m_constraints; | 113 RefPtr<MediaConstraints> m_constraints; |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 typedef Vector<RefPtr<MediaStreamSource> > MediaStreamSourceVector; | 116 typedef Vector<RefPtr<MediaStreamSource> > MediaStreamSourceVector; |
| 116 | 117 |
| 117 } // namespace WebCore | 118 } // namespace WebCore |
| 118 | 119 |
| 119 #endif // MediaStreamSource_h | 120 #endif // MediaStreamSource_h |
| OLD | NEW |