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

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

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Code review, adding changed gyp files. It also includes all changes in patch 4 which didn't get in. Created 9 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
7
8 #include <string>
9
10 #include "content/renderer/media/media_stream_dispatcher.h"
11
12 // This class is a mock implementation of MediaStreamDispatcher.
13 class MockMediaStreamDispatcher : public MediaStreamDispatcher {
14 public:
15 MockMediaStreamDispatcher();
16 virtual ~MockMediaStreamDispatcher();
17
18 virtual void GenerateStream(int request_id,
19 MediaStreamDispatcherEventHandler* event_handler,
20 media_stream::StreamOptions components,
21 const std::string& security_origin) OVERRIDE;
22 virtual void StopStream(const std::string& label) OVERRIDE;
23 virtual bool IsStream(const std::string& label) OVERRIDE;
24 virtual int video_session_id(const std::string& label, int index) OVERRIDE;
25 virtual int audio_session_id(const std::string& label, int index) OVERRIDE;
26
27 int request_id() const { return request_id_; }
28 MediaStreamDispatcherEventHandler* event_handler() const
29 {
scherkus (not reviewing) 2011/11/01 00:25:50 { goes on previous line
Henrik Grunell 2011/11/07 14:18:54 Done.
30 return event_handler_;
31 }
32 media_stream::StreamOptions* components() const { return components_; }
33 std::string security_origin() const { return security_origin_; }
34
35 private:
36 int request_id_;
37 MediaStreamDispatcherEventHandler* event_handler_;
38 media_stream::StreamOptions* components_;
39 std::string security_origin_;
40
41 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher);
42 };
43
44 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.cc ('k') | content/renderer/media/mock_media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698