| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. All rights reserved. | 2 * Copyright 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 23 matching lines...) Expand all Loading... |
| 34 #include "platform/audio/AudioSourceProvider.h" | 34 #include "platform/audio/AudioSourceProvider.h" |
| 35 #include "wtf/Noncopyable.h" | 35 #include "wtf/Noncopyable.h" |
| 36 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
| 37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 38 #include "wtf/ThreadingPrimitives.h" | 38 #include "wtf/ThreadingPrimitives.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 class WebAudioSourceProvider; | 41 class WebAudioSourceProvider; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace blink { |
| 45 | 45 |
| 46 class MediaStreamWebAudioSource : public AudioSourceProvider { | 46 class MediaStreamWebAudioSource : public AudioSourceProvider { |
| 47 WTF_MAKE_NONCOPYABLE(MediaStreamWebAudioSource); | 47 WTF_MAKE_NONCOPYABLE(MediaStreamWebAudioSource); |
| 48 public: | 48 public: |
| 49 static PassOwnPtr<MediaStreamWebAudioSource> create(PassOwnPtr<blink::WebAud
ioSourceProvider> provider) { return adoptPtr(new MediaStreamWebAudioSource(prov
ider)); } | 49 static PassOwnPtr<MediaStreamWebAudioSource> create(PassOwnPtr<blink::WebAud
ioSourceProvider> provider) { return adoptPtr(new MediaStreamWebAudioSource(prov
ider)); } |
| 50 | 50 |
| 51 virtual ~MediaStreamWebAudioSource(); | 51 virtual ~MediaStreamWebAudioSource(); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 explicit MediaStreamWebAudioSource(PassOwnPtr<blink::WebAudioSourceProvider>
); | 54 explicit MediaStreamWebAudioSource(PassOwnPtr<blink::WebAudioSourceProvider>
); |
| 55 | 55 |
| 56 // WebCore::AudioSourceProvider implementation. | 56 // blink::AudioSourceProvider implementation. |
| 57 virtual void provideInput(WebCore::AudioBus*, size_t framesToProcess) OVERRI
DE; | 57 virtual void provideInput(blink::AudioBus*, size_t framesToProcess) OVERRIDE
; |
| 58 | 58 |
| 59 OwnPtr<blink::WebAudioSourceProvider> m_webAudioSourceProvider; | 59 OwnPtr<blink::WebAudioSourceProvider> m_webAudioSourceProvider; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace WebCore | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // MediaStreamWebAudioSource_h | 64 #endif // MediaStreamWebAudioSource_h |
| OLD | NEW |