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