| 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 16 matching lines...) Expand all Loading... |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef MediaStreamSourcesQueryClient_h | 32 #ifndef MediaStreamSourcesQueryClient_h |
| 33 #define MediaStreamSourcesQueryClient_h | 33 #define MediaStreamSourcesQueryClient_h |
| 34 | 34 |
| 35 #if ENABLE(MEDIA_STREAM) | 35 #if ENABLE(MEDIA_STREAM) |
| 36 | 36 |
| 37 #include "MediaStreamSource.h" | 37 #include "core/platform/mediastream/MediaStreamSource.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class MediaStreamSourcesQueryClient : public RefCounted<MediaStreamSourcesQueryC
lient> { | 41 class MediaStreamSourcesQueryClient : public RefCounted<MediaStreamSourcesQueryC
lient> { |
| 42 public: | 42 public: |
| 43 virtual ~MediaStreamSourcesQueryClient() { } | 43 virtual ~MediaStreamSourcesQueryClient() { } |
| 44 | 44 |
| 45 virtual bool audio() const = 0; | 45 virtual bool audio() const = 0; |
| 46 virtual bool video() const = 0; | 46 virtual bool video() const = 0; |
| 47 | 47 |
| 48 virtual void didCompleteQuery(const MediaStreamSourceVector& audioSources, c
onst MediaStreamSourceVector& videoSources) = 0; | 48 virtual void didCompleteQuery(const MediaStreamSourceVector& audioSources, c
onst MediaStreamSourceVector& videoSources) = 0; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace WebCore | 51 } // namespace WebCore |
| 52 | 52 |
| 53 #endif // ENABLE(MEDIA_STREAM) | 53 #endif // ENABLE(MEDIA_STREAM) |
| 54 | 54 |
| 55 #endif // MediaStreamSourcesQueryClient_h | 55 #endif // MediaStreamSourcesQueryClient_h |
| OLD | NEW |