Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h

Issue 2366253002: Remove ActiveDOMObject::stop() (Closed)
Patch Set: temp Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void unregisterMediaStream(MediaStream*); 93 void unregisterMediaStream(MediaStream*);
94 94
95 // EventTarget 95 // EventTarget
96 const AtomicString& interfaceName() const override; 96 const AtomicString& interfaceName() const override;
97 ExecutionContext* getExecutionContext() const override; 97 ExecutionContext* getExecutionContext() const override;
98 98
99 // ScriptWrappable 99 // ScriptWrappable
100 bool hasPendingActivity() const final; 100 bool hasPendingActivity() const final;
101 101
102 // ActiveDOMObject 102 // ActiveDOMObject
103 void stop() override; 103 void contextDestroyed() override;
104 104
105 std::unique_ptr<AudioSourceProvider> createWebAudioSource(); 105 std::unique_ptr<AudioSourceProvider> createWebAudioSource();
106 106
107 DECLARE_VIRTUAL_TRACE(); 107 DECLARE_VIRTUAL_TRACE();
108 108
109 private: 109 private:
110 friend class CanvasCaptureMediaStreamTrack; 110 friend class CanvasCaptureMediaStreamTrack;
111 111
112 MediaStreamTrack(ExecutionContext*, MediaStreamComponent*); 112 MediaStreamTrack(ExecutionContext*, MediaStreamComponent*);
113 113
114 // MediaStreamSourceObserver 114 // MediaStreamSourceObserver
115 void sourceChangedState() override; 115 void sourceChangedState() override;
116 116
117 void propagateTrackEnded(); 117 void propagateTrackEnded();
118 118
119 MediaStreamSource::ReadyState m_readyState; 119 MediaStreamSource::ReadyState m_readyState;
120 HeapHashSet<Member<MediaStream>> m_registeredMediaStreams; 120 HeapHashSet<Member<MediaStream>> m_registeredMediaStreams;
121 bool m_isIteratingRegisteredMediaStreams; 121 bool m_isIteratingRegisteredMediaStreams;
122 bool m_stopped; 122 bool m_stopped;
123 Member<MediaStreamComponent> m_component; 123 Member<MediaStreamComponent> m_component;
124 WebMediaConstraints m_constraints; 124 WebMediaConstraints m_constraints;
125 }; 125 };
126 126
127 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector; 127 typedef HeapVector<Member<MediaStreamTrack>> MediaStreamTrackVector;
128 128
129 } // namespace blink 129 } // namespace blink
130 130
131 #endif // MediaStreamTrack_h 131 #endif // MediaStreamTrack_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698