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

Side by Side Diff: content/renderer/media/mock_media_stream_impl.h

Issue 9699069: Adding JSEP PeerConnection glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed missing export. Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "content/renderer/media/media_stream_impl.h" 11 #include "content/renderer/media/media_stream_impl.h"
12 12
13 class MockMediaStreamImpl : public MediaStreamImpl { 13 class MockMediaStreamImpl : public MediaStreamImpl {
14 public: 14 public:
15 MockMediaStreamImpl(); 15 MockMediaStreamImpl();
16 virtual ~MockMediaStreamImpl(); 16 virtual ~MockMediaStreamImpl();
17 17
18 virtual WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler( 18 virtual WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
19 WebKit::WebPeerConnectionHandlerClient* client) OVERRIDE; 19 WebKit::WebPeerConnectionHandlerClient* client) OVERRIDE;
20 virtual void ClosePeerConnection() OVERRIDE; 20 virtual void ClosePeerConnection(
21 PeerConnectionHandlerBase* pc_handler) OVERRIDE;
21 virtual webrtc::MediaStreamTrackInterface* GetLocalMediaStreamTrack( 22 virtual webrtc::MediaStreamTrackInterface* GetLocalMediaStreamTrack(
22 const std::string& label) OVERRIDE; 23 const std::string& label) OVERRIDE;
23 24
24 // Implement webkit_glue::MediaStreamClient. 25 // Implement webkit_glue::MediaStreamClient.
25 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder( 26 virtual scoped_refptr<media::VideoDecoder> GetVideoDecoder(
26 const GURL& url, 27 const GURL& url,
27 media::MessageLoopFactory* message_loop_factory) OVERRIDE; 28 media::MessageLoopFactory* message_loop_factory) OVERRIDE;
28 29
29 // Implement MediaStreamDispatcherEventHandler. 30 // Implement MediaStreamDispatcherEventHandler.
30 virtual void OnStreamGenerated( 31 virtual void OnStreamGenerated(
(...skipping 15 matching lines...) Expand all
46 47
47 private: 48 private:
48 typedef std::map<std::string, webrtc::MediaStreamTrackInterface*> 49 typedef std::map<std::string, webrtc::MediaStreamTrackInterface*>
49 MockMediaStreamTrackPtrMap; 50 MockMediaStreamTrackPtrMap;
50 MockMediaStreamTrackPtrMap mock_local_tracks_; 51 MockMediaStreamTrackPtrMap mock_local_tracks_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamImpl); 53 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamImpl);
53 }; 54 };
54 55
55 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_ 56 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.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