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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 // EventTarget | 81 // EventTarget |
82 const AtomicString& interfaceName() const override; | 82 const AtomicString& interfaceName() const override; |
83 ExecutionContext* getExecutionContext() const override; | 83 ExecutionContext* getExecutionContext() const override; |
84 | 84 |
85 // URLRegistrable | 85 // URLRegistrable |
86 URLRegistry& registry() const override; | 86 URLRegistry& registry() const override; |
87 | 87 |
88 DECLARE_VIRTUAL_TRACE(); | 88 DECLARE_VIRTUAL_TRACE(); |
89 | 89 |
| 90 protected: |
| 91 bool addEventListenerInternal(const AtomicString& eventType, EventListener*,
const AddEventListenerOptions&) override; |
| 92 |
90 private: | 93 private: |
91 MediaStream(ExecutionContext*, MediaStreamDescriptor*); | 94 MediaStream(ExecutionContext*, MediaStreamDescriptor*); |
92 MediaStream(ExecutionContext*, const MediaStreamTrackVector& audioTracks, co
nst MediaStreamTrackVector& videoTracks); | 95 MediaStream(ExecutionContext*, const MediaStreamTrackVector& audioTracks, co
nst MediaStreamTrackVector& videoTracks); |
93 | 96 |
94 // ContextLifecycleObserver | 97 // ContextLifecycleObserver |
95 void contextDestroyed() override; | 98 void contextDestroyed() override; |
96 | 99 |
97 // MediaStreamDescriptorClient | 100 // MediaStreamDescriptorClient |
98 void addRemoteTrack(MediaStreamComponent*) override; | 101 void addRemoteTrack(MediaStreamComponent*) override; |
99 void removeRemoteTrack(MediaStreamComponent*) override; | 102 void removeRemoteTrack(MediaStreamComponent*) override; |
(...skipping 13 matching lines...) Expand all Loading... |
113 HeapVector<Member<Event>> m_scheduledEvents; | 116 HeapVector<Member<Event>> m_scheduledEvents; |
114 }; | 117 }; |
115 | 118 |
116 typedef HeapVector<Member<MediaStream>> MediaStreamVector; | 119 typedef HeapVector<Member<MediaStream>> MediaStreamVector; |
117 | 120 |
118 MediaStream* toMediaStream(MediaStreamDescriptor*); | 121 MediaStream* toMediaStream(MediaStreamDescriptor*); |
119 | 122 |
120 } // namespace blink | 123 } // namespace blink |
121 | 124 |
122 #endif // MediaStream_h | 125 #endif // MediaStream_h |
OLD | NEW |