| 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 25 matching lines...) Expand all Loading... |
| 36 #include "public/platform/WebMediaStreamCenterClient.h" | 36 #include "public/platform/WebMediaStreamCenterClient.h" |
| 37 #include "public/platform/WebVector.h" | 37 #include "public/platform/WebVector.h" |
| 38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "wtf/PassRefPtr.h" |
| 40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
| 41 | 41 |
| 42 namespace WebKit { | 42 namespace WebKit { |
| 43 class WebMediaStream; | 43 class WebMediaStream; |
| 44 class WebMediaStreamCenter; | 44 class WebMediaStreamCenter; |
| 45 class WebMediaStreamTrack; | 45 class WebMediaStreamTrack; |
| 46 class WebSourceInfo; | |
| 47 } | 46 } |
| 48 | 47 |
| 49 namespace WebCore { | 48 namespace WebCore { |
| 50 | 49 |
| 51 class MediaStreamComponent; | 50 class MediaStreamComponent; |
| 52 class MediaStreamDescriptor; | 51 class MediaStreamDescriptor; |
| 53 class MediaStreamSourcesQueryClient; | 52 class MediaStreamSourcesQueryClient; |
| 53 class MediaStreamTrackSourcesRequest; |
| 54 | 54 |
| 55 class MediaStreamCenter : public WebKit::WebMediaStreamCenterClient { | 55 class MediaStreamCenter : public WebKit::WebMediaStreamCenterClient { |
| 56 public: | 56 public: |
| 57 ~MediaStreamCenter(); | 57 ~MediaStreamCenter(); |
| 58 | 58 |
| 59 static MediaStreamCenter& instance(); | 59 static MediaStreamCenter& instance(); |
| 60 | 60 |
| 61 bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::WebSourceIn
fo>&); | 61 bool getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSourcesRequest>); |
| 62 void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStreamCompon
ent*); | 62 void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStreamCompon
ent*); |
| 63 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); | 63 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); |
| 64 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*
); | 64 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*
); |
| 65 void didStopLocalMediaStream(MediaStreamDescriptor*); | 65 void didStopLocalMediaStream(MediaStreamDescriptor*); |
| 66 void didCreateMediaStream(MediaStreamDescriptor*); | 66 void didCreateMediaStream(MediaStreamDescriptor*); |
| 67 | 67 |
| 68 // WebKit::WebMediaStreamCenterClient | 68 // WebKit::WebMediaStreamCenterClient |
| 69 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; | 69 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 MediaStreamCenter(); | 72 MediaStreamCenter(); |
| 73 | 73 |
| 74 OwnPtr<WebKit::WebMediaStreamCenter> m_private; | 74 OwnPtr<WebKit::WebMediaStreamCenter> m_private; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace WebCore | 77 } // namespace WebCore |
| 78 | 78 |
| 79 #endif // MediaStreamCenter_h | 79 #endif // MediaStreamCenter_h |
| OLD | NEW |