| 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 21 matching lines...) Expand all Loading... |
| 32 #ifndef MediaStreamCenter_h | 32 #ifndef MediaStreamCenter_h |
| 33 #define MediaStreamCenter_h | 33 #define MediaStreamCenter_h |
| 34 | 34 |
| 35 #include "modules/mediastream/SourceInfo.h" | 35 #include "modules/mediastream/SourceInfo.h" |
| 36 #include "public/platform/WebVector.h" | 36 #include "public/platform/WebVector.h" |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace WebKit { | 40 namespace WebKit { |
| 41 class WebSourceInfo; | 41 class WebSourceInfo; |
| 42 class WebMediaStream; | |
| 43 } | 42 } |
| 44 | 43 |
| 45 namespace WebCore { | 44 namespace WebCore { |
| 46 | 45 |
| 47 class MediaStreamComponent; | 46 class MediaStreamComponent; |
| 47 class MediaStreamDescriptor; |
| 48 class MediaStreamSourcesQueryClient; | 48 class MediaStreamSourcesQueryClient; |
| 49 | 49 |
| 50 class MediaStreamCenter { | 50 class MediaStreamCenter { |
| 51 public: | 51 public: |
| 52 virtual ~MediaStreamCenter(); | 52 virtual ~MediaStreamCenter(); |
| 53 | 53 |
| 54 static MediaStreamCenter& instance(); | 54 static MediaStreamCenter& instance(); |
| 55 | 55 |
| 56 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) = 0; | 56 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) = 0; |
| 57 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web
SourceInfo>&) = 0; | 57 virtual bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::Web
SourceInfo>&) = 0; |
| 58 | 58 |
| 59 // Calls from the DOM objects to notify the platform | 59 // Calls from the DOM objects to notify the platform |
| 60 virtual void didSetMediaStreamTrackEnabled(WebKit::WebMediaStream, MediaStre
amComponent*) = 0; | 60 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) = 0; |
| 61 virtual bool didAddMediaStreamTrack(WebKit::WebMediaStream, MediaStreamCompo
nent*) = 0; | 61 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) = 0; |
| 62 virtual bool didRemoveMediaStreamTrack(WebKit::WebMediaStream, MediaStreamCo
mponent*) = 0; | 62 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) = 0; |
| 63 virtual void didStopLocalMediaStream(WebKit::WebMediaStream) = 0; | 63 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0; |
| 64 virtual void didCreateMediaStream(WebKit::WebMediaStream) = 0; | 64 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0; |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 MediaStreamCenter(); | 67 MediaStreamCenter(); |
| 68 | 68 |
| 69 void endLocalMediaStream(WebKit::WebMediaStream); | 69 void endLocalMediaStream(MediaStreamDescriptor*); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace WebCore | 72 } // namespace WebCore |
| 73 | 73 |
| 74 #endif // MediaStreamCenter_h | 74 #endif // MediaStreamCenter_h |
| OLD | NEW |