| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2011 Ericsson AB. 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include <memory> | 37 #include <memory> |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class AudioSourceProvider; | 41 class AudioSourceProvider; |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class MediaTrackConstraints; | 43 class MediaTrackConstraints; |
| 44 class MediaStream; | 44 class MediaStream; |
| 45 class MediaTrackSettings; | 45 class MediaTrackSettings; |
| 46 | 46 |
| 47 class MODULES_EXPORT MediaStreamTrack : public EventTargetWithInlineData, | 47 class MODULES_EXPORT MediaStreamTrack |
| 48 public ActiveScriptWrappable, | 48 : public EventTargetWithInlineData, |
| 49 public SuspendableObject, | 49 public ActiveScriptWrappable<MediaStreamTrack>, |
| 50 public MediaStreamSource::Observer { | 50 public SuspendableObject, |
| 51 public MediaStreamSource::Observer { |
| 51 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); | 52 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); |
| 52 DEFINE_WRAPPERTYPEINFO(); | 53 DEFINE_WRAPPERTYPEINFO(); |
| 53 | 54 |
| 54 public: | 55 public: |
| 55 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); | 56 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); |
| 56 ~MediaStreamTrack() override; | 57 ~MediaStreamTrack() override; |
| 57 | 58 |
| 58 String kind() const; | 59 String kind() const; |
| 59 String id() const; | 60 String id() const; |
| 60 String label() const; | 61 String label() const; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 bool m_stopped; | 122 bool m_stopped; |
| 122 Member<MediaStreamComponent> m_component; | 123 Member<MediaStreamComponent> m_component; |
| 123 WebMediaConstraints m_constraints; | 124 WebMediaConstraints m_constraints; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; | 127 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; |
| 127 | 128 |
| 128 } // namespace blink | 129 } // namespace blink |
| 129 | 130 |
| 130 #endif // MediaStreamTrack_h | 131 #endif // MediaStreamTrack_h |
| OLD | NEW |