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

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

Issue 10383151: Refactor MediaStreamImpl and PeerConnection glue implementation after WebKit changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and added NON_EXPORTED_BASE to the base of MediaStreamExtradata. Created 8 years, 7 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/renderer/media/media_stream_center.cc ('k') | content/renderer/media/media_stream_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_extra_data.h
diff --git a/content/renderer/media/media_stream_extra_data.h b/content/renderer/media/media_stream_extra_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..48478b1aa5afb5b21d3b999d8c49ef68e312734d
--- /dev/null
+++ b/content/renderer/media/media_stream_extra_data.h
@@ -0,0 +1,38 @@
+// 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_EXTRA_DATA_H_
+#define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_EXTRA_DATA_H_
+
+#include "base/compiler_specific.h"
+#include "content/common/content_export.h"
+#include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStreamDescriptor.h"
+
+namespace webrtc {
+class MediaStreamInterface;
+class LocalMediaStreamInterface;
+} // namespace webrtc
+
+class CONTENT_EXPORT MediaStreamExtraData
+ : NON_EXPORTED_BASE(public WebKit::WebMediaStreamDescriptor::ExtraData) {
+ public:
+ explicit MediaStreamExtraData(webrtc::MediaStreamInterface* remote_stream);
+ explicit MediaStreamExtraData(
+ webrtc::LocalMediaStreamInterface* local_stream);
+ virtual ~MediaStreamExtraData();
+
+ webrtc::MediaStreamInterface* remote_stream() { return remote_stream_.get(); }
+ webrtc::LocalMediaStreamInterface* local_stream() {
+ return local_stream_.get();
+ }
+
+ private:
+ talk_base::scoped_refptr<webrtc::MediaStreamInterface> remote_stream_;
+ talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface> local_stream_;
+
+ DISALLOW_COPY_AND_ASSIGN(MediaStreamExtraData);
+};
+
+#endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_EXTRA_DATA_H_
« no previous file with comments | « content/renderer/media/media_stream_center.cc ('k') | content/renderer/media/media_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698