| 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 protected: | 47 protected: |
| 48 virtual ~MediaStreamDispatcherHost(); | 48 virtual ~MediaStreamDispatcherHost(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 friend class MockMediaStreamDispatcherHost; | 51 friend class MockMediaStreamDispatcherHost; |
| 52 | 52 |
| 53 void OnGenerateStream(int render_view_id, | 53 void OnGenerateStream(int render_view_id, |
| 54 int page_request_id, | 54 int page_request_id, |
| 55 const StreamOptions& components, | 55 const StreamOptions& components, |
| 56 const GURL& security_origin); | 56 const GURL& security_origin); |
| 57 void OnGenerateStreamForDevice(int render_view_id, |
| 58 int page_request_id, |
| 59 const StreamOptions& components, |
| 60 const std::string& device_id, |
| 61 const GURL& security_origin); |
| 57 void OnCancelGenerateStream(int render_view_id, | 62 void OnCancelGenerateStream(int render_view_id, |
| 58 int page_request_id); | 63 int page_request_id); |
| 59 void OnStopGeneratedStream(int render_view_id, const std::string& label); | 64 void OnStopGeneratedStream(int render_view_id, const std::string& label); |
| 60 | 65 |
| 61 void OnEnumerateDevices(int render_view_id, | 66 void OnEnumerateDevices(int render_view_id, |
| 62 int page_request_id, | 67 int page_request_id, |
| 63 media_stream::MediaStreamType type, | 68 media_stream::MediaStreamType type, |
| 64 const GURL& security_origin); | 69 const GURL& security_origin); |
| 65 | 70 |
| 66 void OnOpenDevice(int render_view_id, | 71 void OnOpenDevice(int render_view_id, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 80 typedef std::map<std::string, StreamRequest> StreamMap; | 85 typedef std::map<std::string, StreamRequest> StreamMap; |
| 81 // Streams generated for this host. | 86 // Streams generated for this host. |
| 82 StreamMap streams_; | 87 StreamMap streams_; |
| 83 | 88 |
| 84 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 89 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
| 85 }; | 90 }; |
| 86 | 91 |
| 87 } // namespace media_stream | 92 } // namespace media_stream |
| 88 | 93 |
| 89 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 94 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| OLD | NEW |