Index: content/renderer/media/media_stream_center.h |
diff --git a/content/renderer/media/media_stream_center.h b/content/renderer/media/media_stream_center.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d8cca6437f101f7c533870268ad69588fa06cda5 |
--- /dev/null |
+++ b/content/renderer/media/media_stream_center.h |
@@ -0,0 +1,46 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_ |
+#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "content/common/content_export.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStreamCenter.h" |
+ |
+namespace WebKit { |
+class WebMediaStreamCenterClient; |
+} |
+ |
+class CONTENT_EXPORT MediaStreamCenter |
+ : NON_EXPORTED_BASE(public WebKit::WebMediaStreamCenter) { |
+ public: |
+ MediaStreamCenter(WebKit::WebMediaStreamCenterClient* client); |
+ |
+ virtual void queryMediaStreamSources( |
+ const WebKit::WebMediaStreamSourcesRequest& request); |
tommi (sloooow) - chröme
2012/02/03 14:39:45
when overriding virtual methods, use the OVERRIDE
tommyw
2012/02/03 14:58:25
Done.
|
+ |
+ virtual void didEnableMediaStreamTrack( |
+ const WebKit::WebMediaStreamDescriptor& stream, |
+ const WebKit::WebMediaStreamComponent& component); |
+ |
+ virtual void didDisableMediaStreamTrack( |
+ const WebKit::WebMediaStreamDescriptor& stream, |
+ const WebKit::WebMediaStreamComponent& component); |
+ |
+ virtual void didStopLocalMediaStream( |
+ const WebKit::WebMediaStreamDescriptor& stream); |
+ |
+ virtual void didConstructMediaStream( |
+ const WebKit::WebMediaStreamDescriptor& stream); |
+ |
+ private: |
+ // Weak pointer, owned by WebKit. |
+ WebKit::WebMediaStreamCenterClient* client_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MediaStreamCenter); |
+}; |
+ |
+#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_ |