| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class WebMediaStreamCenter; | 43 class WebMediaStreamCenter; |
| 44 class WebMediaStreamTrack; | 44 class WebMediaStreamTrack; |
| 45 class WebSourceInfo; | 45 class WebSourceInfo; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace WebCore { | 48 namespace WebCore { |
| 49 | 49 |
| 50 class MediaStreamComponent; | 50 class MediaStreamComponent; |
| 51 class MediaStreamDescriptor; | 51 class MediaStreamDescriptor; |
| 52 class MediaStreamSourcesQueryClient; | 52 class MediaStreamSourcesQueryClient; |
| 53 class MediaStreamTrackSourcesRequest; |
| 53 | 54 |
| 54 class MediaStreamCenterChromium : public MediaStreamCenter, public WebKit::WebMe
diaStreamCenterClient { | 55 class MediaStreamCenterChromium : public MediaStreamCenter, public WebKit::WebMe
diaStreamCenterClient { |
| 55 public: | 56 public: |
| 56 MediaStreamCenterChromium(); | 57 MediaStreamCenterChromium(); |
| 57 ~MediaStreamCenterChromium(); | 58 ~MediaStreamCenterChromium(); |
| 58 | 59 |
| 59 // MediaStreamCenter | 60 // MediaStreamCenter |
| 60 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) OVERRIDE; | 61 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) OVERRIDE; |
| 61 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web
SourceInfo>&) OVERRIDE; | 62 virtual bool getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSourcesRe
quest>) OVERRIDE; |
| 62 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) OVERRIDE; | 63 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) OVERRIDE; |
| 63 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) OVERRIDE; | 64 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) OVERRIDE; |
| 64 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) OVERRIDE; | 65 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) OVERRIDE; |
| 65 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) OVERRIDE; | 66 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) OVERRIDE; |
| 66 virtual void didCreateMediaStream(MediaStreamDescriptor*) OVERRIDE; | 67 virtual void didCreateMediaStream(MediaStreamDescriptor*) OVERRIDE; |
| 67 | 68 |
| 68 // WebKit::WebMediaStreamCenterClient | 69 // WebKit::WebMediaStreamCenterClient |
| 69 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; | 70 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 OwnPtr<WebKit::WebMediaStreamCenter> m_private; | 73 OwnPtr<WebKit::WebMediaStreamCenter> m_private; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace WebCore | 76 } // namespace WebCore |
| 76 | 77 |
| 77 #endif // MediaStreamCenterChromium_h | 78 #endif // MediaStreamCenterChromium_h |
| OLD | NEW |