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

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

Issue 552653005: Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 29 matching lines...) Expand all
40 class MediaStreamComponent; 40 class MediaStreamComponent;
41 class MediaStreamTrackSourcesCallback; 41 class MediaStreamTrackSourcesCallback;
42 42
43 class MediaStreamTrack FINAL 43 class MediaStreamTrack FINAL
44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<MediaStre amTrack> 44 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<MediaStre amTrack>
45 , public ActiveDOMObject 45 , public ActiveDOMObject
46 , public EventTargetWithInlineData 46 , public EventTargetWithInlineData
47 , public MediaStreamSource::Observer { 47 , public MediaStreamSource::Observer {
48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<MediaStreamTrack>); 48 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollectedWi llBeGarbageCollectedFinalized<MediaStreamTrack>);
49 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack); 50 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamTrack);
51 public: 51 public:
52 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*); 52 static MediaStreamTrack* create(ExecutionContext*, MediaStreamComponent*);
53 virtual ~MediaStreamTrack(); 53 virtual ~MediaStreamTrack();
54 54
55 String kind() const; 55 String kind() const;
56 String id() const; 56 String id() const;
57 String label() const; 57 String label() const;
58 58
59 bool enabled() const; 59 bool enabled() const;
60 void setEnabled(bool); 60 void setEnabled(bool);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // MediaStreamSourceObserver 94 // MediaStreamSourceObserver
95 virtual void sourceChangedState() OVERRIDE; 95 virtual void sourceChangedState() OVERRIDE;
96 96
97 void propagateTrackEnded(); 97 void propagateTrackEnded();
98 98
99 MediaStreamSource::ReadyState m_readyState; 99 MediaStreamSource::ReadyState m_readyState;
100 HeapHashSet<Member<MediaStream> > m_registeredMediaStreams; 100 HeapHashSet<Member<MediaStream> > m_registeredMediaStreams;
101 bool m_isIteratingRegisteredMediaStreams; 101 bool m_isIteratingRegisteredMediaStreams;
102 bool m_stopped; 102 bool m_stopped;
103 RefPtr<MediaStreamComponent> m_component; 103 Member<MediaStreamComponent> m_component;
104 }; 104 };
105 105
106 typedef HeapVector<Member<MediaStreamTrack> > MediaStreamTrackVector; 106 typedef HeapVector<Member<MediaStreamTrack> > MediaStreamTrackVector;
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // MediaStreamTrack_h 110 #endif // MediaStreamTrack_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/MediaStreamRegistry.h ('k') | Source/modules/mediastream/MediaStreamTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698