| 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 16 matching lines...) Expand all Loading... |
| 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 #if ENABLE(MEDIA_STREAM) | 35 #if ENABLE(MEDIA_STREAM) |
| 36 | 36 |
| 37 #include "AudioDestinationConsumer.h" | 37 #include "core/platform/audio/AudioDestinationConsumer.h" |
| 38 #include <wtf/RefCounted.h> | 38 #include <wtf/RefCounted.h> |
| 39 #include <wtf/text/WTFString.h> |
| 39 #include <wtf/Vector.h> | 40 #include <wtf/Vector.h> |
| 40 #include <wtf/text/WTFString.h> | |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 class MediaStreamSource : public RefCounted<MediaStreamSource> { | 44 class MediaStreamSource : public RefCounted<MediaStreamSource> { |
| 45 public: | 45 public: |
| 46 class Observer { | 46 class Observer { |
| 47 public: | 47 public: |
| 48 virtual ~Observer() { } | 48 virtual ~Observer() { } |
| 49 virtual void sourceChangedState() = 0; | 49 virtual void sourceChangedState() = 0; |
| 50 }; | 50 }; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 RefPtr<ExtraData> m_extraData; | 106 RefPtr<ExtraData> m_extraData; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 typedef Vector<RefPtr<MediaStreamSource> > MediaStreamSourceVector; | 109 typedef Vector<RefPtr<MediaStreamSource> > MediaStreamSourceVector; |
| 110 | 110 |
| 111 } // namespace WebCore | 111 } // namespace WebCore |
| 112 | 112 |
| 113 #endif // ENABLE(MEDIA_STREAM) | 113 #endif // ENABLE(MEDIA_STREAM) |
| 114 | 114 |
| 115 #endif // MediaStreamSource_h | 115 #endif // MediaStreamSource_h |
| OLD | NEW |