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 void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClient>); | 61 void queryMediaStreamSources(PassRefPtr<MediaStreamSourcesQueryClient>); |
62 bool getSourceInfos(const String& url, WebKit::WebVector<WebKit::WebSourceIn
fo>&); | 62 bool getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSourcesRequest>); |
63 void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStreamCompon
ent*); | 63 void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStreamCompon
ent*); |
64 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); | 64 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); |
65 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*
); | 65 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*
); |
66 void didStopLocalMediaStream(MediaStreamDescriptor*); | 66 void didStopLocalMediaStream(MediaStreamDescriptor*); |
67 void didCreateMediaStream(MediaStreamDescriptor*); | 67 void didCreateMediaStream(MediaStreamDescriptor*); |
68 | 68 |
69 // WebKit::WebMediaStreamCenterClient | 69 // WebKit::WebMediaStreamCenterClient |
70 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; | 70 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; |
71 | 71 |
72 private: | 72 private: |
73 MediaStreamCenter(); | 73 MediaStreamCenter(); |
74 | 74 |
75 OwnPtr<WebKit::WebMediaStreamCenter> m_private; | 75 OwnPtr<WebKit::WebMediaStreamCenter> m_private; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace WebCore |
79 | 79 |
80 #endif // MediaStreamCenter_h | 80 #endif // MediaStreamCenter_h |
OLD | NEW |