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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return audio_input_array_; | 51 return audio_input_array_; |
52 } | 52 } |
53 const StreamDeviceInfoArray& audio_output_array() const { | 53 const StreamDeviceInfoArray& audio_output_array() const { |
54 return audio_output_array_; | 54 return audio_output_array_; |
55 } | 55 } |
56 const StreamDeviceInfoArray& video_array() const { return video_array_; } | 56 const StreamDeviceInfoArray& video_array() const { return video_array_; } |
57 | 57 |
58 private: | 58 private: |
59 void AddAudioInputDeviceToArray(bool matched_output); | 59 void AddAudioInputDeviceToArray(bool matched_output); |
60 void AddAudioOutputDeviceToArray(); | 60 void AddAudioOutputDeviceToArray(); |
61 void AddVideoDeviceToArray(); | 61 void AddVideoDeviceToArray(bool facing_user); |
62 | 62 |
63 int audio_input_request_id_; | 63 int audio_input_request_id_; |
64 int audio_output_request_id_; // Only used for EnumerateDevices. | 64 int audio_output_request_id_; // Only used for EnumerateDevices. |
65 int video_request_id_; // Only used for EnumerateDevices. | 65 int video_request_id_; // Only used for EnumerateDevices. |
66 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; | 66 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; |
67 int request_stream_counter_; | 67 int request_stream_counter_; |
68 int stop_audio_device_counter_; | 68 int stop_audio_device_counter_; |
69 int stop_video_device_counter_; | 69 int stop_video_device_counter_; |
70 | 70 |
71 std::string stream_label_; | 71 std::string stream_label_; |
72 int session_id_; | 72 int session_id_; |
73 StreamDeviceInfoArray audio_input_array_; | 73 StreamDeviceInfoArray audio_input_array_; |
74 StreamDeviceInfoArray audio_output_array_; | 74 StreamDeviceInfoArray audio_output_array_; |
75 StreamDeviceInfoArray video_array_; | 75 StreamDeviceInfoArray video_array_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); | 77 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace content | 80 } // namespace content |
81 | 81 |
82 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 82 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
OLD | NEW |