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