Fix build break
[chromium-blink-merge.git] / content / renderer / media / media_stream_center.h
blobde5f2e180d61fd7c31b3b7c2402ffa965f780700
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.
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/common/content_export.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStream.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCenter.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamTrack.h"
15 namespace WebKit {
16 class WebMediaStreamCenterClient;
19 namespace content {
20 class MediaStreamDependencyFactory;
22 class CONTENT_EXPORT MediaStreamCenter
23 : NON_EXPORTED_BASE(public WebKit::WebMediaStreamCenter) {
24 public:
25 MediaStreamCenter(WebKit::WebMediaStreamCenterClient* client,
26 MediaStreamDependencyFactory* factory);
28 virtual void queryMediaStreamSources(
29 const WebKit::WebMediaStreamSourcesRequest& request) OVERRIDE;
31 virtual void didEnableMediaStreamTrack(
32 const WebKit::WebMediaStream& stream,
33 const WebKit::WebMediaStreamTrack& component) OVERRIDE;
35 virtual void didDisableMediaStreamTrack(
36 const WebKit::WebMediaStream& stream,
37 const WebKit::WebMediaStreamTrack& component) OVERRIDE;
39 virtual void didStopLocalMediaStream(
40 const WebKit::WebMediaStream& stream) OVERRIDE;
42 virtual void didCreateMediaStream(
43 WebKit::WebMediaStream& stream) OVERRIDE;
45 virtual bool didAddMediaStreamTrack(
46 const WebKit::WebMediaStream& stream,
47 const WebKit::WebMediaStreamTrack& track) OVERRIDE;
49 virtual bool didRemoveMediaStreamTrack(
50 const WebKit::WebMediaStream& stream,
51 const WebKit::WebMediaStreamTrack& track) OVERRIDE;
53 private:
54 // |rtc_factory_| is a weak pointer and is owned by the RenderThreadImpl.
55 // It is valid as long as RenderThreadImpl exist.
56 MediaStreamDependencyFactory* rtc_factory_;
58 DISALLOW_COPY_AND_ASSIGN(MediaStreamCenter);
61 } // namespace content
63 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_