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 26 matching lines...) Expand all Loading... |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "public/platform/WebMediaConstraints.h" | 38 #include "public/platform/WebMediaConstraints.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/PassOwnPtr.h" | 40 #include "wtf/PassOwnPtr.h" |
41 #include "wtf/ThreadingPrimitives.h" | 41 #include "wtf/ThreadingPrimitives.h" |
42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
43 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 class PLATFORM_EXPORT MediaStreamSource FINAL : public GarbageCollectedFinalized
<MediaStreamSource> { | 47 class PLATFORM_EXPORT MediaStreamSource final : public GarbageCollectedFinalized
<MediaStreamSource> { |
48 public: | 48 public: |
49 class Observer : public GarbageCollectedMixin { | 49 class Observer : public GarbageCollectedMixin { |
50 public: | 50 public: |
51 virtual ~Observer() { } | 51 virtual ~Observer() { } |
52 virtual void sourceChangedState() = 0; | 52 virtual void sourceChangedState() = 0; |
53 virtual void trace(Visitor*) { } | 53 virtual void trace(Visitor*) { } |
54 }; | 54 }; |
55 | 55 |
56 class ExtraData { | 56 class ExtraData { |
57 public: | 57 public: |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 HeapHashSet<Member<AudioDestinationConsumer> > m_audioConsumers; | 111 HeapHashSet<Member<AudioDestinationConsumer> > m_audioConsumers; |
112 OwnPtr<ExtraData> m_extraData; | 112 OwnPtr<ExtraData> m_extraData; |
113 blink::WebMediaConstraints m_constraints; | 113 blink::WebMediaConstraints m_constraints; |
114 }; | 114 }; |
115 | 115 |
116 typedef HeapVector<Member<MediaStreamSource> > MediaStreamSourceVector; | 116 typedef HeapVector<Member<MediaStreamSource> > MediaStreamSourceVector; |
117 | 117 |
118 } // namespace blink | 118 } // namespace blink |
119 | 119 |
120 #endif // MediaStreamSource_h | 120 #endif // MediaStreamSource_h |
OLD | NEW |