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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class MediaStreamSourcesQueryClient; | 44 class MediaStreamSourcesQueryClient; |
45 | 45 |
46 class MediaStreamCenter { | 46 class MediaStreamCenter { |
47 public: | 47 public: |
48 virtual ~MediaStreamCenter(); | 48 virtual ~MediaStreamCenter(); |
49 | 49 |
50 static MediaStreamCenter& instance(); | 50 static MediaStreamCenter& instance(); |
51 | 51 |
52 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) = 0; | 52 virtual void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClien
t>) = 0; |
53 | 53 |
54 // FIXME: add a way to mute a MediaStreamSource from the WebKit API layer | |
55 | |
56 // Calls from the DOM objects to notify the platform | 54 // Calls from the DOM objects to notify the platform |
57 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) = 0; | 55 virtual void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStre
amComponent*) = 0; |
58 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) = 0; | 56 virtual bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCompo
nent*) = 0; |
59 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) = 0; | 57 virtual bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamCo
mponent*) = 0; |
60 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0; | 58 virtual void didStopLocalMediaStream(MediaStreamDescriptor*) = 0; |
61 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0; | 59 virtual void didCreateMediaStream(MediaStreamDescriptor*) = 0; |
62 | 60 |
63 protected: | 61 protected: |
64 MediaStreamCenter(); | 62 MediaStreamCenter(); |
65 | 63 |
66 void endLocalMediaStream(MediaStreamDescriptor*); | 64 void endLocalMediaStream(MediaStreamDescriptor*); |
67 void addMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); | |
68 void removeMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); | |
69 }; | 65 }; |
70 | 66 |
71 } // namespace WebCore | 67 } // namespace WebCore |
72 | 68 |
73 #endif // ENABLE(MEDIA_STREAM) | 69 #endif // ENABLE(MEDIA_STREAM) |
74 | 70 |
75 #endif // MediaStreamCenter_h | 71 #endif // MediaStreamCenter_h |
OLD | NEW |