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

Unified Diff: content/renderer/media/mock_media_stream_impl.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
Index: content/renderer/media/mock_media_stream_impl.h
diff --git a/content/renderer/media/mock_media_stream_impl.h b/content/renderer/media/mock_media_stream_impl.h
deleted file mode 100644
index 1bdbd801921a6f70c6279153e2b0055c0a6f6b5b..0000000000000000000000000000000000000000
--- a/content/renderer/media/mock_media_stream_impl.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// 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_MOCK_MEDIA_STREAM_IMPL_H_
-#define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_
-
-#include <map>
-#include <string>
-
-#include "content/renderer/media/media_stream_impl.h"
-
-class MockMediaStreamImpl : public MediaStreamImpl {
- public:
- MockMediaStreamImpl();
- virtual ~MockMediaStreamImpl();
-
- virtual WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
- WebKit::WebPeerConnectionHandlerClient* client) OVERRIDE;
- virtual void ClosePeerConnection(
- PeerConnectionHandlerBase* pc_handler) OVERRIDE;
-
- virtual webrtc::LocalMediaStreamInterface* GetLocalMediaStream(
- const WebKit::WebMediaStreamDescriptor& stream) OVERRIDE;
-
- // Implement webkit_glue::MediaStreamClient.
- virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
- const GURL& url,
- media::MessageLoopFactory* message_loop_factory) OVERRIDE;
-
- // Implement MediaStreamDispatcherEventHandler.
- virtual void OnStreamGenerated(
- int request_id,
- const std::string& label,
- const media_stream::StreamDeviceInfoArray& audio_array,
- const media_stream::StreamDeviceInfoArray& video_array) OVERRIDE;
- virtual void OnStreamGenerationFailed(int request_id) OVERRIDE;
- virtual void OnVideoDeviceFailed(
- const std::string& label,
- int index) OVERRIDE;
- virtual void OnAudioDeviceFailed(
- const std::string& label,
- int index) OVERRIDE;
-
- void AddLocalStream(webrtc::LocalMediaStreamInterface* stream);
- private:
- typedef std::map<std::string,
- talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface> >
- MockMediaStreamPtrMap;
- MockMediaStreamPtrMap mock_local_streams_;
-
- DISALLOW_COPY_AND_ASSIGN(MockMediaStreamImpl);
-};
-
-#endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_
« no previous file with comments | « content/renderer/media/media_stream_impl_unittest.cc ('k') | content/renderer/media/mock_media_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698