| OLD | NEW |
| 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_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/renderer/media/media_stream_dispatcher.h" | 10 #include "content/renderer/media/media_stream_dispatcher.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 const StreamOptions& components, | 24 const StreamOptions& components, |
| 25 const GURL& url) OVERRIDE; | 25 const GURL& url) OVERRIDE; |
| 26 virtual void CancelGenerateStream( | 26 virtual void CancelGenerateStream( |
| 27 int request_id, | 27 int request_id, |
| 28 const base::WeakPtr<MediaStreamDispatcherEventHandler>& | 28 const base::WeakPtr<MediaStreamDispatcherEventHandler>& |
| 29 event_handler) OVERRIDE; | 29 event_handler) OVERRIDE; |
| 30 virtual void EnumerateDevices( | 30 virtual void EnumerateDevices( |
| 31 int request_id, | 31 int request_id, |
| 32 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, | 32 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, |
| 33 MediaStreamType type, | 33 MediaStreamType type, |
| 34 const GURL& security_origin) OVERRIDE; | 34 const GURL& security_origin, |
| 35 bool hide_labels_if_no_access) OVERRIDE; |
| 35 virtual void StopStreamDevice(const StreamDeviceInfo& device_info) OVERRIDE; | 36 virtual void StopStreamDevice(const StreamDeviceInfo& device_info) OVERRIDE; |
| 36 virtual bool IsStream(const std::string& label) OVERRIDE; | 37 virtual bool IsStream(const std::string& label) OVERRIDE; |
| 37 virtual int video_session_id(const std::string& label, int index) OVERRIDE; | 38 virtual int video_session_id(const std::string& label, int index) OVERRIDE; |
| 38 virtual int audio_session_id(const std::string& label, int index) OVERRIDE; | 39 virtual int audio_session_id(const std::string& label, int index) OVERRIDE; |
| 39 | 40 |
| 40 int audio_input_request_id() const { return audio_input_request_id_; } | 41 int audio_input_request_id() const { return audio_input_request_id_; } |
| 41 int audio_output_request_id() const { return audio_output_request_id_; } | 42 int audio_output_request_id() const { return audio_output_request_id_; } |
| 42 int video_request_id() const { return video_request_id_; } | 43 int video_request_id() const { return video_request_id_; } |
| 43 int request_stream_counter() const { return request_stream_counter_; } | 44 int request_stream_counter() const { return request_stream_counter_; } |
| 44 void IncrementSessionId() { ++session_id_; } | 45 void IncrementSessionId() { ++session_id_; } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 73 StreamDeviceInfoArray audio_input_array_; | 74 StreamDeviceInfoArray audio_input_array_; |
| 74 StreamDeviceInfoArray audio_output_array_; | 75 StreamDeviceInfoArray audio_output_array_; |
| 75 StreamDeviceInfoArray video_array_; | 76 StreamDeviceInfoArray video_array_; |
| 76 | 77 |
| 77 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); | 78 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace content | 81 } // namespace content |
| 81 | 82 |
| 82 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 83 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| OLD | NEW |