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 MediaStreamDescriptor_h | 32 #ifndef MediaStreamDescriptor_h |
33 #define MediaStreamDescriptor_h | 33 #define MediaStreamDescriptor_h |
34 | 34 |
35 #include "core/platform/mediastream/MediaStreamComponent.h" | 35 #include "core/platform/mediastream/MediaStreamComponent.h" |
36 #include "core/platform/mediastream/MediaStreamSource.h" | 36 #include "core/platform/mediastream/MediaStreamSource.h" |
37 #include <wtf/RefCounted.h> | 37 #include "wtf/RefCounted.h" |
38 #include <wtf/Vector.h> | 38 #include "wtf/Vector.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class MediaStreamDescriptorClient { | 42 class MediaStreamDescriptorClient { |
43 public: | 43 public: |
44 virtual ~MediaStreamDescriptorClient() { } | 44 virtual ~MediaStreamDescriptorClient() { } |
45 | 45 |
46 virtual void trackEnded() = 0; | 46 virtual void trackEnded() = 0; |
47 virtual void streamEnded() = 0; | 47 virtual void streamEnded() = 0; |
48 virtual void addRemoteTrack(MediaStreamComponent*) = 0; | 48 virtual void addRemoteTrack(MediaStreamComponent*) = 0; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 bool m_ended; | 94 bool m_ended; |
95 | 95 |
96 RefPtr<ExtraData> m_extraData; | 96 RefPtr<ExtraData> m_extraData; |
97 }; | 97 }; |
98 | 98 |
99 typedef Vector<RefPtr<MediaStreamDescriptor> > MediaStreamDescriptorVector; | 99 typedef Vector<RefPtr<MediaStreamDescriptor> > MediaStreamDescriptorVector; |
100 | 100 |
101 } // namespace WebCore | 101 } // namespace WebCore |
102 | 102 |
103 #endif // MediaStreamDescriptor_h | 103 #endif // MediaStreamDescriptor_h |
OLD | NEW |