| 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_MEDIA_STREAM_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/gtest_prod_util.h" |
| 13 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 14 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 15 #include "content/common/media/media_stream_options.h" | 16 #include "content/common/media/media_stream_options.h" |
| 16 #include "content/public/renderer/render_view_observer.h" | 17 #include "content/public/renderer/render_view_observer.h" |
| 17 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" | 18 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" |
| 18 | 19 |
| 19 class RenderViewImpl; | 20 class RenderViewImpl; |
| 20 | 21 |
| 21 // MediaStreamDispatcher is a delegate for the Media Stream API messages. | 22 // MediaStreamDispatcher is a delegate for the Media Stream API messages. |
| 22 // MediaStreams are used by WebKit to open media devices such as Video Capture | 23 // MediaStreams are used by WebKit to open media devices such as Video Capture |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 LabelStreamMap label_stream_map_; | 108 LabelStreamMap label_stream_map_; |
| 108 | 109 |
| 109 // List of calls made to GenerateStream that has not yet completed. | 110 // List of calls made to GenerateStream that has not yet completed. |
| 110 typedef std::list<Request> RequestList; | 111 typedef std::list<Request> RequestList; |
| 111 RequestList requests_; | 112 RequestList requests_; |
| 112 | 113 |
| 113 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); | 114 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ | 117 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ |
| OLD | NEW |