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/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 blink { |
43 class WebMediaStream; | 43 class WebMediaStream; |
44 class WebMediaStreamCenter; | 44 class WebMediaStreamCenter; |
45 class WebMediaStreamTrack; | 45 class WebMediaStreamTrack; |
46 } | 46 } |
47 | 47 |
48 namespace WebCore { | 48 namespace WebCore { |
49 | 49 |
50 class MediaStreamComponent; | 50 class MediaStreamComponent; |
51 class MediaStreamDescriptor; | 51 class MediaStreamDescriptor; |
52 class MediaStreamTrackSourcesRequest; | 52 class MediaStreamTrackSourcesRequest; |
53 | 53 |
54 class MediaStreamCenter : public WebKit::WebMediaStreamCenterClient { | 54 class MediaStreamCenter : public blink::WebMediaStreamCenterClient { |
55 public: | 55 public: |
56 ~MediaStreamCenter(); | 56 ~MediaStreamCenter(); |
57 | 57 |
58 static MediaStreamCenter& instance(); | 58 static MediaStreamCenter& instance(); |
59 | 59 |
60 bool getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSourcesRequest>); | 60 bool getMediaStreamTrackSources(PassRefPtr<MediaStreamTrackSourcesRequest>); |
61 void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStreamCompon
ent*); | 61 void didSetMediaStreamTrackEnabled(MediaStreamDescriptor*, MediaStreamCompon
ent*); |
62 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); | 62 bool didAddMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*); |
63 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*
); | 63 bool didRemoveMediaStreamTrack(MediaStreamDescriptor*, MediaStreamComponent*
); |
64 void didStopLocalMediaStream(MediaStreamDescriptor*); | 64 void didStopLocalMediaStream(MediaStreamDescriptor*); |
65 bool didStopMediaStreamTrack(MediaStreamComponent*); | 65 bool didStopMediaStreamTrack(MediaStreamComponent*); |
66 void didCreateMediaStream(MediaStreamDescriptor*); | 66 void didCreateMediaStream(MediaStreamDescriptor*); |
67 | 67 |
68 // WebKit::WebMediaStreamCenterClient | 68 // blink::WebMediaStreamCenterClient |
69 virtual void stopLocalMediaStream(const WebKit::WebMediaStream&) OVERRIDE; | 69 virtual void stopLocalMediaStream(const blink::WebMediaStream&) OVERRIDE; |
70 | 70 |
71 private: | 71 private: |
72 MediaStreamCenter(); | 72 MediaStreamCenter(); |
73 | 73 |
74 OwnPtr<WebKit::WebMediaStreamCenter> m_private; | 74 OwnPtr<blink::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 |