OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "content/common/content_export.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre
amCenter.h" |
| 12 |
| 13 namespace WebKit { |
| 14 class WebMediaStreamCenterClient; |
| 15 } |
| 16 |
| 17 class CONTENT_EXPORT MediaStreamCenter |
| 18 : NON_EXPORTED_BASE(public WebKit::WebMediaStreamCenter) { |
| 19 public: |
| 20 MediaStreamCenter(WebKit::WebMediaStreamCenterClient* client); |
| 21 |
| 22 virtual void queryMediaStreamSources( |
| 23 const WebKit::WebMediaStreamSourcesRequest& request) OVERRIDE; |
| 24 |
| 25 virtual void didEnableMediaStreamTrack( |
| 26 const WebKit::WebMediaStreamDescriptor& stream, |
| 27 const WebKit::WebMediaStreamComponent& component) OVERRIDE; |
| 28 |
| 29 virtual void didDisableMediaStreamTrack( |
| 30 const WebKit::WebMediaStreamDescriptor& stream, |
| 31 const WebKit::WebMediaStreamComponent& component) OVERRIDE; |
| 32 |
| 33 virtual void didStopLocalMediaStream( |
| 34 const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE; |
| 35 |
| 36 virtual void didConstructMediaStream( |
| 37 const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE; |
| 38 |
| 39 private: |
| 40 // Weak pointer, owned by WebKit. |
| 41 WebKit::WebMediaStreamCenterClient* client_; |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(MediaStreamCenter); |
| 44 }; |
| 45 |
| 46 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_ |
OLD | NEW |