| 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 24 matching lines...) Expand all Loading... |
| 35 #include "platform/PlatformExport.h" | 35 #include "platform/PlatformExport.h" |
| 36 #include "platform/audio/AudioDestinationConsumer.h" | 36 #include "platform/audio/AudioDestinationConsumer.h" |
| 37 #include "public/platform/WebMediaConstraints.h" | 37 #include "public/platform/WebMediaConstraints.h" |
| 38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 40 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.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 WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 class PLATFORM_EXPORT MediaStreamSource FINAL : public RefCounted<MediaStreamSou
rce> { | 47 class PLATFORM_EXPORT MediaStreamSource FINAL : public RefCounted<MediaStreamSou
rce> { |
| 48 public: | 48 public: |
| 49 class Observer { | 49 class Observer { |
| 50 public: | 50 public: |
| 51 virtual ~Observer() { } | 51 virtual ~Observer() { } |
| 52 virtual void sourceChangedState() = 0; | 52 virtual void sourceChangedState() = 0; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 class ExtraData { | 55 class ExtraData { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 bool m_requiresConsumer; | 104 bool m_requiresConsumer; |
| 105 Vector<Observer*> m_observers; | 105 Vector<Observer*> m_observers; |
| 106 Mutex m_audioConsumersLock; | 106 Mutex m_audioConsumersLock; |
| 107 Vector<RefPtr<AudioDestinationConsumer> > m_audioConsumers; | 107 Vector<RefPtr<AudioDestinationConsumer> > m_audioConsumers; |
| 108 OwnPtr<ExtraData> m_extraData; | 108 OwnPtr<ExtraData> m_extraData; |
| 109 blink::WebMediaConstraints m_constraints; | 109 blink::WebMediaConstraints m_constraints; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 typedef Vector<RefPtr<MediaStreamSource> > MediaStreamSourceVector; | 112 typedef Vector<RefPtr<MediaStreamSource> > MediaStreamSourceVector; |
| 113 | 113 |
| 114 } // namespace WebCore | 114 } // namespace blink |
| 115 | 115 |
| 116 #endif // MediaStreamSource_h | 116 #endif // MediaStreamSource_h |
| OLD | NEW |