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 // VideoCaptureHost serves video capture related messages from | 5 // VideoCaptureHost serves video capture related messages from |
6 // VideoCaptureMessageFilter which lives inside the render process. | 6 // VideoCaptureMessageFilter which lives inside the render process. |
7 // | 7 // |
8 // This class is owned by RenderProcessHostImpl, and instantiated on UI | 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI |
9 // thread, but all other operations and method calls happen on IO thread. | 9 // thread, but all other operations and method calls happen on IO thread. |
10 // | 10 // |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include <map> | 54 #include <map> |
55 | 55 |
56 #include "base/memory/ref_counted.h" | 56 #include "base/memory/ref_counted.h" |
57 #include "base/memory/weak_ptr.h" | 57 #include "base/memory/weak_ptr.h" |
58 #include "base/sequenced_task_runner_helpers.h" | 58 #include "base/sequenced_task_runner_helpers.h" |
59 #include "content/browser/renderer_host/media/video_capture_controller.h" | 59 #include "content/browser/renderer_host/media/video_capture_controller.h" |
60 #include "content/common/content_export.h" | 60 #include "content/common/content_export.h" |
61 #include "content/public/browser/browser_message_filter.h" | 61 #include "content/public/browser/browser_message_filter.h" |
62 #include "ipc/ipc_message.h" | 62 #include "ipc/ipc_message.h" |
63 | 63 |
64 namespace media { | |
65 class VideoCaptureCapability; | |
66 } | |
67 | |
68 namespace content { | 64 namespace content { |
69 class MediaStreamManager; | 65 class MediaStreamManager; |
70 | 66 |
71 class CONTENT_EXPORT VideoCaptureHost | 67 class CONTENT_EXPORT VideoCaptureHost |
72 : public BrowserMessageFilter, | 68 : public BrowserMessageFilter, |
73 public VideoCaptureControllerEventHandler { | 69 public VideoCaptureControllerEventHandler { |
74 public: | 70 public: |
75 explicit VideoCaptureHost(MediaStreamManager* media_stream_manager); | 71 explicit VideoCaptureHost(MediaStreamManager* media_stream_manager); |
76 | 72 |
77 // BrowserMessageFilter implementation. | 73 // BrowserMessageFilter implementation. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // is connected. An entry in this map holds a null controller while it is in | 158 // is connected. An entry in this map holds a null controller while it is in |
163 // the process of starting. | 159 // the process of starting. |
164 EntryMap entries_; | 160 EntryMap entries_; |
165 | 161 |
166 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 162 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
167 }; | 163 }; |
168 | 164 |
169 } // namespace content | 165 } // namespace content |
170 | 166 |
171 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 167 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
OLD | NEW |