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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class MediaStreamDescriptorClient : public GarbageCollectedMixin { | 43 class MediaStreamDescriptorClient : public GarbageCollectedMixin { |
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 virtual void trace(Visitor*) { } | 50 virtual void trace(Visitor*) { } |
51 }; | 51 }; |
52 | 52 |
53 class PLATFORM_EXPORT MediaStreamDescriptor FINAL : public GarbageCollectedFinal
ized<MediaStreamDescriptor> { | 53 class PLATFORM_EXPORT MediaStreamDescriptor final : public GarbageCollectedFinal
ized<MediaStreamDescriptor> { |
54 public: | 54 public: |
55 class ExtraData { | 55 class ExtraData { |
56 public: | 56 public: |
57 virtual ~ExtraData() { } | 57 virtual ~ExtraData() { } |
58 }; | 58 }; |
59 | 59 |
60 // Only used for AudioDestinationNode. | 60 // Only used for AudioDestinationNode. |
61 static MediaStreamDescriptor* create(const MediaStreamSourceVector& audioSou
rces, const MediaStreamSourceVector& videoSources); | 61 static MediaStreamDescriptor* create(const MediaStreamSourceVector& audioSou
rces, const MediaStreamSourceVector& videoSources); |
62 | 62 |
63 static MediaStreamDescriptor* create(const MediaStreamComponentVector& audio
Components, const MediaStreamComponentVector& videoComponents); | 63 static MediaStreamDescriptor* create(const MediaStreamComponentVector& audio
Components, const MediaStreamComponentVector& videoComponents); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 MediaStreamComponentVector m_audioComponents; | 99 MediaStreamComponentVector m_audioComponents; |
100 MediaStreamComponentVector m_videoComponents; | 100 MediaStreamComponentVector m_videoComponents; |
101 bool m_ended; | 101 bool m_ended; |
102 | 102 |
103 OwnPtr<ExtraData> m_extraData; | 103 OwnPtr<ExtraData> m_extraData; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace blink | 106 } // namespace blink |
107 | 107 |
108 #endif // MediaStreamDescriptor_h | 108 #endif // MediaStreamDescriptor_h |
OLD | NEW |