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) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 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 25 matching lines...) Expand all Loading... |
36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
39 #include "wtf/ThreadingPrimitives.h" | 39 #include "wtf/ThreadingPrimitives.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 class WebAudioSourceProvider; | 43 class WebAudioSourceProvider; |
44 } | 44 } |
45 | 45 |
46 namespace WebCore { | 46 namespace blink { |
47 | 47 |
48 class MediaStreamDescriptor; | 48 class MediaStreamDescriptor; |
49 class MediaStreamSource; | 49 class MediaStreamSource; |
50 | 50 |
51 class PLATFORM_EXPORT MediaStreamComponent : public RefCounted<MediaStreamCompon
ent> { | 51 class PLATFORM_EXPORT MediaStreamComponent : public RefCounted<MediaStreamCompon
ent> { |
52 public: | 52 public: |
53 class ExtraData { | 53 class ExtraData { |
54 public: | 54 public: |
55 virtual ~ExtraData() { } | 55 virtual ~ExtraData() { } |
56 }; | 56 }; |
(...skipping 25 matching lines...) Expand all Loading... |
82 | 82 |
83 class PLATFORM_EXPORT AudioSourceProviderImpl FINAL: public AudioSourceProvi
der { | 83 class PLATFORM_EXPORT AudioSourceProviderImpl FINAL: public AudioSourceProvi
der { |
84 public: | 84 public: |
85 AudioSourceProviderImpl() | 85 AudioSourceProviderImpl() |
86 : m_webAudioSourceProvider(0) | 86 : m_webAudioSourceProvider(0) |
87 { | 87 { |
88 } | 88 } |
89 | 89 |
90 virtual ~AudioSourceProviderImpl() { } | 90 virtual ~AudioSourceProviderImpl() { } |
91 | 91 |
92 // Wraps the given blink::WebAudioSourceProvider to WebCore::AudioSource
Provider. | 92 // Wraps the given blink::WebAudioSourceProvider to blink::AudioSourcePr
ovider. |
93 void wrap(blink::WebAudioSourceProvider*); | 93 void wrap(blink::WebAudioSourceProvider*); |
94 | 94 |
95 // WebCore::AudioSourceProvider | 95 // blink::AudioSourceProvider |
96 virtual void provideInput(WebCore::AudioBus*, size_t framesToProcess) OV
ERRIDE; | 96 virtual void provideInput(blink::AudioBus*, size_t framesToProcess) OVER
RIDE; |
97 | 97 |
98 private: | 98 private: |
99 blink::WebAudioSourceProvider* m_webAudioSourceProvider; | 99 blink::WebAudioSourceProvider* m_webAudioSourceProvider; |
100 Mutex m_provideInputLock; | 100 Mutex m_provideInputLock; |
101 }; | 101 }; |
102 | 102 |
103 AudioSourceProviderImpl m_sourceProvider; | 103 AudioSourceProviderImpl m_sourceProvider; |
104 #endif // ENABLE(WEB_AUDIO) | 104 #endif // ENABLE(WEB_AUDIO) |
105 | 105 |
106 RefPtr<MediaStreamSource> m_source; | 106 RefPtr<MediaStreamSource> m_source; |
107 String m_id; | 107 String m_id; |
108 bool m_enabled; | 108 bool m_enabled; |
109 bool m_muted; | 109 bool m_muted; |
110 OwnPtr<ExtraData> m_extraData; | 110 OwnPtr<ExtraData> m_extraData; |
111 }; | 111 }; |
112 | 112 |
113 typedef Vector<RefPtr<MediaStreamComponent> > MediaStreamComponentVector; | 113 typedef Vector<RefPtr<MediaStreamComponent> > MediaStreamComponentVector; |
114 | 114 |
115 } // namespace WebCore | 115 } // namespace blink |
116 | 116 |
117 #endif // MediaStreamComponent_h | 117 #endif // MediaStreamComponent_h |
OLD | NEW |