| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef MediaStreamCenterChromium_h | 31 #ifndef MediaStreamCenterChromium_h |
| 32 #define MediaStreamCenterChromium_h | 32 #define MediaStreamCenterChromium_h |
| 33 | 33 |
| 34 #include "core/platform/mediastream/MediaStreamCenter.h" | 34 #include "core/platform/mediastream/MediaStreamCenter.h" |
| 35 | 35 |
| 36 #include "public/platform/WebMediaStreamCenterClient.h" | 36 #include "public/platform/WebMediaStreamCenterClient.h" |
| 37 #include <wtf/OwnPtr.h> | 37 #include "wtf/OwnPtr.h" |
| 38 #include <wtf/PassRefPtr.h> | 38 #include "wtf/PassRefPtr.h" |
| 39 #include <wtf/text/WTFString.h> | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace WebKit { | 41 namespace WebKit { |
| 42 class WebMediaStream; | 42 class WebMediaStream; |
| 43 class WebMediaStreamCenter; | 43 class WebMediaStreamCenter; |
| 44 class WebMediaStreamTrack; | 44 class WebMediaStreamTrack; |
| 45 class WebSourceInfo; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace WebCore { | 48 namespace WebCore { |
| 48 | 49 |
| 49 class MediaStreamComponent; | 50 class MediaStreamComponent; |
| 50 class MediaStreamDescriptor; | 51 class MediaStreamDescriptor; |
| 51 class MediaStreamSourcesQueryClient; | 52 class MediaStreamSourcesQueryClient; |
| 52 | 53 |
| 53 class MediaStreamCenterChromium : public MediaStreamCenter, public WebKit::WebMe
diaStreamCenterClient { | 54 class MediaStreamCenterChromium : public MediaStreamCenter, public WebKit::WebMe
diaStreamCenterClient { |
| 54 public: | 55 public: |
| 55 MediaStreamCenterChromium(); | 56 MediaStreamCenterChromium(); |
| 56 ~MediaStreamCenterChromium(); | 57 ~MediaStreamCenterChromium(); |
| 57 | 58 |
| 58 // MediaStreamCenter | 59 // MediaStreamCenter |
| 59 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) OVERRIDE; | 60 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) OVERRIDE; |
| 61 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web
SourceInfo>&) OVERRIDE; |
| 60 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) OVERRIDE; | 62 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) OVERRIDE; |
| 61 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) OVERRIDE; | 63 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) OVERRIDE; |
| 62 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) OVERRIDE; | 64 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) OVERRIDE; |
| 63 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) OVERRIDE; | 65 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) OVERRIDE; |
| 64 virtual void didCreateMediaStream(MediaStreamDescriptor*) OVERRIDE; | 66 virtual void didCreateMediaStream(MediaStreamDescriptor*) OVERRIDE; |
| 65 | 67 |
| 66 // WebKit::WebMediaStreamCenterClient | 68 // WebKit::WebMediaStreamCenterClient |
| 67 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; | 69 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; |
| 68 | 70 |
| 69 private: | 71 private: |
| 70 OwnPtr<WebKit::WebMediaStreamCenter> m_private; | 72 OwnPtr<WebKit::WebMediaStreamCenter> m_private; |
| 71 }; | 73 }; |
| 72 | 74 |
| 73 } // namespace WebCore | 75 } // namespace WebCore |
| 74 | 76 |
| 75 #endif // MediaStreamCenterChromium_h | 77 #endif // MediaStreamCenterChromium_h |
| OLD | NEW |