Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: content/renderer/media/media_stream_center.h

Issue 9619006: Adding a skeleton MediaStreamCenter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding a skeleton MediaStreamCenter. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..11c1fc4aaf0d2a45431594bdcfbd66b5761a71cf
--- /dev/null
+++ b/content/renderer/media/media_stream_center.h
@@ -0,0 +1,50 @@
+// 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;
+}
+
+namespace content {
+
+class CONTENT_EXPORT MediaStreamCenter
+ : NON_EXPORTED_BASE(public WebKit::WebMediaStreamCenter) {
+ public:
+ explicit MediaStreamCenter(WebKit::WebMediaStreamCenterClient* client);
+
+ virtual void queryMediaStreamSources(
+ const WebKit::WebMediaStreamSourcesRequest& request) OVERRIDE;
+
+ virtual void didEnableMediaStreamTrack(
+ const WebKit::WebMediaStreamDescriptor& stream,
+ const WebKit::WebMediaStreamComponent& component) OVERRIDE;
+
+ virtual void didDisableMediaStreamTrack(
+ const WebKit::WebMediaStreamDescriptor& stream,
+ const WebKit::WebMediaStreamComponent& component) OVERRIDE;
+
+ virtual void didStopLocalMediaStream(
+ const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE;
+
+ virtual void didConstructMediaStream(
+ const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE;
+
+ private:
+ // Weak pointer, owned by WebKit.
+ WebKit::WebMediaStreamCenterClient* client_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaStreamCenter);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_CENTER_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/media_stream_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698